I have read extensively on perl in the past week... sounds AWESOME... finally figured the obligatory "Hello World" needed to do it's thing. Copied it WORD FOR WORD from "Learning Perl", named it "hw.pl" (no quotes), chmod'd it to 755, and typed the file name. Nothing. Changed quotes in file to single quotes, NOPE. Put purposeful error in it to see if ANYTHING was happening, yes got compile error. Found "perl" is symlinked to "perl5", which is in turn symlinked to "perl5.6.0", and didn't think this would be the problem. Tried running "/usr/bin/perl hw.pl", and nothing.
Just so you have no questions:
#!usr/bin/perl print "Hello World/n";
is it. I'm running Mandrake Linux 8.0, shell = bash. Believe me, I've tried everything before sending this. There's just no "print", no warnings, just an empty prompt.
Please, flame with understanding... you MAY have once been this stupid.
Paul
2002-06-11 Edit by Corion : Changed title, added formatting In reply to Help with Hello World Program (was: I lower my head in awe and shame... mainly shame.)
by Anonymous Monk
For:
Use:
& & < < > > [ [ ] ]