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.
In reply to Re^3: Masters of Loops and Filehandles
by roboticus
in thread Masters of Loops and Filehandles
by pbyfire
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |