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

[email protected] (Rob Dixon)
Newsgroups perl.beginners
Message-ID <[email protected]>
Dr.Ruud wrote:
> Richard Lee schreef:
> 
>> $pattern = '.*(?:' . join('|', @ARGV) . ')';
> 
> Safer:
> 
>   $pattern = '.*(?:' . join('|', map quotemeta, @ARGV) . ')';
> 
> And I would do a qr() on top of that. 

How? And why?

Rob
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.