Re: in the elemetns of programming perl , I need help with 2 lines that I don't understand

[email protected] ("Dr.Ruud")
Newsgroups perl.beginners
Organization Chaos rules.
Message-ID <[email protected]>
Richard Lee schreef:

> $pattern = '.*(?:' . join('|', @ARGV) . ')';

Safer:

  $pattern = '.*(?:' . join('|', map quotemeta, @ARGV) . ')';

And I would do a qr() on top of that. 

-- 
Affijn, Ruud

"Gewoon is een tijger."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.