Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: A prayer for the monks

by blazar (Canon)
on Feb 19, 2007 at 16:41 UTC ( [id://600881]=note: print w/replies, xml ) Need Help??


in reply to A prayer for the monks

Did you pray this prayer?\n";<br>

Naaah, I didn't even read it. Just gave a peek. Not really interested in prayers.

I used strict and warnings and I believe the she bang line should work on most modern computers

Whoa! This is the cleanest and most correct Perl code you posted thus far, the only error being a spurious <br> tag that for perl is an attempt to read from the br filehandle:

aleph:~ [17:41:57]$ perl -c 600859.pl Name "main::br" used only once: possible typo at 600859.pl line 30. 600859.pl syntax OK aleph:~ [17:42:06]$ perl 600859.pl >/dev/null # A better place! Name "main::br" used only once: possible typo at 600859.pl line 30. readline() on unopened filehandle br at 600859.pl line 30.

Incidentally, for multiline strings you may be interested in HERE documents which are slightly less error prone and all in all, cleaner: look them up in perldoc perlop.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://600881]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-19 10:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found