in reply to Re: Re: I lower my head in awe and shame... mainly shame.
in thread Help with Hello World Program (was: I lower my head in awe and shame... mainly shame.)

Hmmm... now in scanning the other answers, I guess I AM wondering why it didn't print: "Hello World/n" {error and all}, or prepend my prompt with something. It's not ABSOLUTELY vital I know the answer to this, but now just curious... trying to rebuild debugging career and all. Thx, paul P.S. You probably WERE NEVER THIS dumb!
  • Comment on Re: Re: Re: I lower my head in awe and shame... mainly shame.

Replies are listed 'Best First'.
Re: Re: Re: Re: I lower my head in awe and shame...
by jlongino (Parson) on Jun 11, 2002 at 22:19 UTC
    It wouldn't have generated an error*, but you may be Suffering from Buffering?. To find out, change your code to the following:
    #!/usr/bin/perl $|++; print "Hello World/n";

    --Jim

    Update1: Added the "/" to the shebang. Note that executing this program will look something like the following since your newline is mangled:

    prompt> helloworld.pl Hello World/nprompt>

    Update2: * provided you ran your program from the root (/) directory, the relative path would've worked if the rest (usr/bin/perl) was correct.