[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] TMTOWTDI #2



1999-06-29-06:10:09 Ariel Scolnicov:
> For robustness, you'd probably want to use something like
>     $re = join '|', map {"\Q$_\E"} @pnames
> instead.

For some reason I find myself preferring:

      $re = join '|', map { quotemeta($_) } @pnames

even if it's a little gabbier.

-Bennett

==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org