in reply to Deleting a Column name from file

perlrun explains the runtime switches and in this case it is likely that -i and -p could prove useful.

You'll probably also want to look at the s/// operator as explained in perlop.

Have you tried writing out what you want to acheive as an algorithm instead of just the starting and ending datasets? This exercise will usually prove helpful.