Just wanted to prove to myself that I could do it too
(and to let
Jouke have his turn to carp at me ;))
$_->()for map{my$y=$_;sub{print$y}}(split qr,,,q,use re;$y=~tr/kn
ol/Japh/c;$,)[map-0141+ord,q=uabldv;prlxfmdwfeoidxvzofe==~m~.~g];
With apologies to John Porter on the FWP mail list
Warning The line feed after the kn should
not be deleted!
| Spoiler |
$_->() # Execute closure
for map{
my $y = $_; # Lexical for closure
sub{ print $y } # Create closure
}
# Create a list by splitting q,, text into characters
( split
qr,,,
q,use re;$y=~tr/knXol/Japh/c;$,
# ^... Place holder for line feed
)
# Create a slice into the text list above. The contents
# of [] are the indices of the characters that I want to
# use in the text above, in the order I want to use them
[ map
-0141 + ord, # $_ - ord('a')
q=uabldv;prlxfmdwfeoidxvzofe= =~ m~.~g
# Splits into characters
];
|
--
I knock my pate and fancy wit will come
Knock as I please, there's no one at home
a pontiff paraphrased
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.