Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: regexp =~by japhy (Canon) |
on Jul 29, 2002 at 18:05 UTC ( [id://186043]=note: print w/replies, xml ) | Need Help?? |
First, you want to use /\Q$line\E/. Second, why are you doing if (/$x/) { s/$x/$y/g } instead of the simpler s/$x/$y/g?
_____________________________________________________
In Section
Seekers of Perl Wisdom
|
|