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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.