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

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to