Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

The Walrus

by dooberwah (Pilgrim)
on May 08, 2001 at 19:24 UTC ( [id://78862]=poem: print w/replies, xml ) Need Help??

Based on "The Walrus and the Carpenter" by Lewis Carroll.

This is my first attempt at poetry in Perl. It's not supposed to run and would probobly return a ton of errors if you tried running it.

print WALRUS, "the" . time() . "has come"; $talk = $many_things; $clothing{'foot'} && $ships && $wax{'sealing'}; $cabbages && $monarch{'king'}; && ?$sea == $boiling hot; && ?$pigs & $wings;

Replies are listed 'Best First'.
Re: The Walrus
by premchai21 (Curate) on May 08, 2001 at 20:05 UTC
    use strict; my (%things, @many, $sea, %pigs); sub talk { } <WALRUS> eq "the $(time) has come"; talk(@things{@many}); @things{@many} = 'shoes' & 'ships' & 'sealing wax'; @things{@many} = 'cabbages' & 'kings' & ($sea->isa('Boiling::Hot') ? 0 : 0) & (exists $pigs{wings} ? 0 : 0);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-23 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found