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":



  • 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.