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


in reply to appending file name

If you add use warnings; at the beginning of your script, Perl will direct you to the line which you need to change.