in reply to rename file extension
One thing I would change after correcting for the afore mentioned syntax error would be
if you need to change one file name to another. Depending on what you need to do with the output, this will let you audit the change and only act on items that need a change. Good luck. -c... print(FHA "$new_filenname$new_ext\t$file\n"); ...
In Section
Seekers of Perl Wisdom