How can I make a simple Perl program work?

Ronny

New member
I find it strange that your perl resides in /usr/sbin.

When you type from the command line

/usr/sbin/perl -v

what results do you get?

(I assume that you are on Unix/Linux, because of the #! line).
 
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?
 
Back
Top