| Home >> Program that prints out Hello, World! (let's call our file hello.pl): #!/usr/bin/perl print "Hello, World!\n";
The perl interpreter has useful switches.
So how would you actually run this program? You could run it as: $perl -w hello.pl or we could make the perl file executable, by using the chmod command: $chmod 700 hello.pl $./hello.pl How do I issue the -w flag? Simple, put it in the perl line at line #!/usr/bin/perl -w. print "Hello, World!\n"; Perl functions
|
call a stored procedure Home Perl Typeglob
|