in reply to Re^2: Masters of Loops and Filehandles
in thread Masters of Loops and Filehandles
You can slurp the entire file into a variable by localizing the $/ variable:
{ local $/; $Gibberish = <$FH>; }
If you do that after the open, and before the binmode & seek, you should be able to do a global search & replace on the entire file. Then just put it in a loop...
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|