Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Christmas carols

by repson (Chaplain)
on Dec 21, 2000 at 09:52 UTC ( #47737=poem: 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) );

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2022-12-08 19:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?