Bennett Todd <bet@newritz.mordor.net> writes: > 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. Actually, so do I... -- Ariel Scolnicov |"GCAAGAATTGAACTGTAG" |ariels@compugen.co.il Compugen Ltd. |Tel: +972-2-6795059 (Jerusalem) \ NEW IMPROVED URL! 72 Pinhas Rosen St. |Tel: +972-3-7658520 (Main office)`-------------------- Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555 http://3w.compugen.co.il/~ariels ==== Want to unsubscribe from Fun With Perl? ==== Well, if you insist... Send mail with body "unsubscribe" to ==== fwp-request@technofile.org