in reply to Re: Use of grep and foreachin thread Use of grep and foreach
You sure can, see this post for editing in place using grep and Tie::File.