Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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.


In reply to Re: A prayer for the monks by blazar
in thread A prayer for the monks by Kevin_Raymer

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-16 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found