in reply to Re^6: using hashes
in thread iterating hash keys?
If your 'words' might contain punctuation, you can escape meta characters using quotemeta or synonymously \Q .. \E
s/\b\Q$find\E\b/$replace/g
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: using hashes
by R56 (Sexton) on Sep 27, 2013 at 17:48 UTC | |
by kennethk (Abbot) on Sep 27, 2013 at 21:26 UTC | |
by R56 (Sexton) on Sep 27, 2013 at 22:36 UTC |