Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

A prayer for the monks

by Kevin_Raymer (Initiate)
on Feb 19, 2007 at 14:48 UTC ( #600859=poem: print w/replies, xml ) Need Help??

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: A prayer for the monks
by zentara (Archbishop) on Feb 19, 2007 at 15:01 UTC
    This is the one I remember from Catholic Grade School.
    #!/usr/bin/perl use warnings; use strict; # keep the strict nuns happy :-) for( 1..100){ print "Hail Mary full of grace, slap the devil across the face\n"; } exec ("echo 666 > /dev/null" );

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
      Back in the days of the C64, and the word processor, Speed Script, I got in trouble for nearly the same thing.

      "I will not do something something w/e it was"

      Copy.. paste paste paste paste paste paste.. count lines... print. This was when I was in a parochial school, and much more literal minded. :) I got in trouble. :( Again.

Re: A prayer for the monks
by blazar (Canon) on Feb 19, 2007 at 16:41 UTC
    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.

Re: A prayer for the monks
by Anonymous Monk on Feb 19, 2007 at 15:00 UTC
    Quote: I am sorry I have angered so many with my posts.

    Repent, harlequin!, said the Anonymous Monk :-)

Re: A prayer for the monks
by CountZero (Bishop) on Feb 19, 2007 at 16:40 UTC
    Sorry, in this Monastery this Monk only prays to the Gods of Perl.

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Re: A prayer for the monks
by Moron (Curate) on Feb 19, 2007 at 18:38 UTC
    I erased my original reply here because the OP was reaped as a potential troll seed, on the basis that my original reply here could therefore potentially become troll food. OK I admit I'm not a model of restraint - after all I did tell OP his machine was clearly possessed by the Devil and could only be cleansed by installing the Holy Linux upon it ;) - sometimes you just can't help it ;) ...

    -M

    Free your mind

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-07-07 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?