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