in reply to
find & replace a string in perl
Another one (using Regex positive lookahead)
perl -pi -e 's/(?=.*\btest\b)/#/' fileName
Comment on
Re: find & replace a string in perl
Download
Code
In Section
Seekers of Perl Wisdom