Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Thought I'd make sure perlmonks gets with the Chrismas thingy and so converted a couple of carols to perl, all set to be ignored or --ed for crapness....
=pod Rudolph the red nose reindeer, had a very shiney nose, and if you ever saw it, you would even say it glowed. All of the other reindeer, used to laugh and call him names. They never let poor Rudolph, join in any reindeer games. =cut $nose = new Feature ( color => 'red', features => 'shiny' ); $rudolph = new Reindeer ( nose => $nose ); $you->say( 'glowing' => $nose ) if $you->see( $rudolph ); if ( PAST ) { $reindeer->laugh; $reindeer->insult( $rudolph ); $reindeer->ban( $rudolph, { from => 'games' } ); } =pod Then one foggy Christmas Eve, Santa came to say: "Rudolph with your nose so bright, won't you come and guide my sleigh tonight?" Then all the reindeer loved him, as they shouted out with glee: "Rudoph the Red Nose Reindeer, you'll go down in history!" =cut if ( $day->christmas and $weather->foggy ) { $rudolph->guide( $sleigh ); $reindeer->love( $rudolph ); $reindeer->shout( with => 'glee' ); $history->add( $rudolph ); }
And another
# Dashing through the snow # In a one horse open sleigh my $we = new People; my $snow = new Enviroment ( type => 'cold' ); my $sleigh = new Transport ( for => $snow ); $sleigh->puller( new Horse ); $sleigh->dash( $snow ); # O'er fields we go # Laughing all the way # Bell on bobtail ring # Making spirits bright # What fun it is to ride and sing # A sleighing song tonight $we->go( $fields, 'over' ); $we->do( 'laugh' ); $bell->ring; $spirits->set( bright => 1 ); $we->set_fun( 'lots' ) while ( $we->ride and $we->sing( about => 'slei +ghing' ); =pod Jingle bells, jingle bells Jingle all the way, Oh what fun it is to ride In a one-horse open sleigh, O Jingle bells, jingle bells Jingle all the way, Oh what fun it is to ride In a one-horse open sleigh. =cut $bells->jingle; $bells->jingle; $bells->jingle while ( $we->travel ); $we->set_fun( 'lots' ) while ( $we->in($sleigh) ); $bells->jingle; $bells->jingle; $bells->jingle while ( $we->travel ); $we->set_fun( 'lots' ) while ( $we->in($sleigh) );

In reply to Christmas carols by repson

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 goofing around in the Monastery: (5)
As of 2024-04-19 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found