Cool/useful short examples of Perl?
uri at StemSystems.com
Mon May 30 21:02:12 BST 2011
>>>>> "D" == Denny <2011 at denny.me> writes:
D> On Mon, 2011-05-30 at 13:10 -0400, Uri Guttman wrote:
>> if you think those are complex, you haven't seen enough perl! :)
D> I'm trying to think about the target audience, rather than show how
D> clever I am.
that isn't clever in my book. the slurp thing is only one simple regex
in list context. i have shown it (a working version!) to intermediate
and newbie perlers and they get it when shown how to break it down. that
is a skill they usually need to learn and this is a real world example
that displays it. just like showing map/grep to the same crowd. they all
shy from it until you really explain it. then they add it to their perl
vocabulary. you need to challenge them a bit with new stuff instead of
handing them simple code anyone can do.
Uri Guttman ------ uri at stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
More information about the london.pm