in reply to Re^2: using hashes
in thread iterating hash keys?
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: using hashes
by R56 (Sexton) on Sep 26, 2013 at 16:46 UTC |
In Section
Seekers of Perl Wisdom