in reply to Replace Last Line in File
in thread search and replace last line

perldoc -q change line file perl 5.008 will tell you to use Tie::File, older perls offer other examples.

~Particle *accelerates*