« Just another commodity | Main | Dutch handicap »
August 24, 2005
Apply transform ~ Perl stuff
Here's an interesting and very efficient way to transform each list element, returning the list of those modified copies:
my @nice_words =
apply { s/$EXPLETIVE/[DELETED]/gxms } @words;
That is of course if you are willing to use the not-so well known List::MoreUtils CPAN module.

Posted at 4:49 PM
Trackback Pings
TrackBack URL for this entry:
http://www.kiffinsblog.com/cgi-bin/mt/mt-tb.cgi/110
0 Comment(s)
Post a comment
Thanks for signing in, . Now you can comment. (sign out)
(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)







