Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Best approach to creating a regex from a filehandleby smls (Friar) |
on May 18, 2014 at 20:26 UTC ( [id://1086547]=note: print w/replies, xml ) | Need Help?? |
Unless you're sure that the input file will only contain safe characters, you should call quotemeta on $_ inside the map. Edit: Oops, I only just now noticed that choroba already mentioned quotemeta in his answer. Sorry for the redundancy.
In Section
Seekers of Perl Wisdom
|
|