in reply to Modifying data in variable length file
Use Tie::File to manipulate each line of the file, and substr to access the columns you want to change.