Cool/useful short examples of Perl?

Uri Guttman uri at
Mon May 30 21:02:12 BST 2011

>>>>> "D" == Denny  <2011 at> 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  -------- --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ---- ---------

More information about the mailing list