Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: using hashesby arrestee (Novice) |
on Sep 26, 2013 at 15:58 UTC ( [id://1055858]=note: print w/replies, xml ) | Need Help?? |
For an effective solution to your problem, see BrowserUK's comment below. As to why the code you've shown doesn't work, it's probably because you're storing each line of your file/array in $line, but doing your substitution against $_. Try this: $line =~ s/$find/$replace/g.
In Section
Seekers of Perl Wisdom
|
|