Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Just Another Perl Haiku-er

by ColonelPanic (Friar)
on Nov 28, 2012 at 10:40 UTC ( #1006004=poem: print w/ replies, xml ) Need Help??

no warnings; require 5.7.5; sub haiku { $word = shift; join $word x 5 . "\n" , shift, $word x 2, shift, shift; } print haiku('foo ');


When's the last time you used duct tape on a duct? --Larry Wall

Comment on Just Another Perl Haiku-er
Download Code
Re: Just Another Perl Haiku-er
by tobyink (Abbot) on Nov 28, 2012 at 13:03 UTC

    Cute.

    If reading aloud, make sure you pronounce "." as "dot" or "stop", "=" as "equals", and don't pronounce commas or semicolons at all.

    "\n" can be "slash N", "new line", or "line break".

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: poem [id://1006004]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-12-26 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls