Unless your input file is quite small, consider not using Tie::File for reading it, as it's notoriously slow with 'large' files:
In reply to Re: Modify values of tied, split lines in a file
by Kenosis
in thread Modify values of tied, split lines in a file
by glemley8
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |