http://www.perlmonks.org?node_id=1006004

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

Replies are listed 'Best First'.
Re: Just Another Perl Haiku-er
by tobyink (Canon) 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'
Re: Just Another Perl Haiku-er
by Anonymous Monk on Jun 30, 2019 at 07:40 UTC

    Ha! Comment Haiku:

    Made me laugh out loud. Poems like this make me proud, to be in the crowd.
    Yours is far better! Thanks...