http://qs321.pair.com?node_id=11123061

jalopez453 has asked for the wisdom of the Perl Monks concerning the following question:

Would someone be able to assist me in regards to updating a line when it meets a certain criteria. I am looking for something along the lines of.
if LINE contains "SUM" then remove last two characters in line ELSE #do nothing END IF
I have read many forums but I can't seem to find something of what I am trying to complete.