in reply to Re: Regexp Substitution on previously opened filehandle
in thread Regexp Substitution on previously opened filehandle

Or use Tie::File to pretend you're working on an array. Then the s/// would affect the lines in the file.

Caution: Contents may have been coded under pressure.