How can I make a simple Perl program work?

jimbo_carruth

New member
I tried a simple Hello world Program, and a black screen comes up for a fraction of a second but then automatically closes. Source code:

#!/usr/sbin/perl -w

print("Hello world!");

I feel like I have Perl installed correctly...
How do I run a program using the command prompt window?
 
If you run the script from the command line by simply calling the script, the window won't stay up.

You need to bring up the command prompt window, which is under Start --> All Programs --> Accessories.

(I'm assuming you are running Perl off Windows)
 
Back
Top