Nice++, this is indeed a more Perlish way, certainly very different from the Lispish one.

A few observations & questions:

  1. I dread +shift (and anything with a + to force scalar context, it just looks so kludgy...), I guess you could use $_[0] instead ?
  2. Why are you using quotemeta ?

In reply to Re^2: Perl can do it, take 1 (sentence generation) by spurperl
in thread Perl can do it, take 1 (sentence generation) by spurperl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":