Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I lower my head in awe and shame... mainly shame.
by dws (Chancellor) on Jun 11, 2002 at 17:52 UTC | |
|
Re: Help with Hello World Program (was: I lower my head in awe and shame... mainly shame.)
by insensate (Hermit) on Jun 11, 2002 at 18:53 UTC | |
|
Re: I lower my head in awe and shame... mainly shame.
by robobunny (Friar) on Jun 11, 2002 at 17:47 UTC | |
by Anonymous Monk on Jun 11, 2002 at 18:00 UTC | |
by Anonymous Monk on Jun 11, 2002 at 18:08 UTC | |
by jlongino (Parson) on Jun 11, 2002 at 22:19 UTC | |
|
Re: I lower my head in awe and shame... mainly shame.
by dsheroh (Monsignor) on Jun 11, 2002 at 17:48 UTC |