Have you actually tested your code? Assigning to $. does not reset the file pointer in any way. You need to either use seek, or go a step back and look at the original suggestion of using Tie::File. Or, actually, start thinking about the approach I outlined twice already.
In reply to Re^11: Help editing a file based off seach criteria
by Corion
in thread Help editing a file based off seach criteria
by perlnewb123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |