http://www.perlmonks.org?node_id=1000412


in reply to Modify values of tied, split lines in a file

Unless your input file is quite small, consider not using Tie::File for reading it, as it's notoriously slow with 'large' files: