in reply to Re^2: appending file name
in thread appending file name
By using my @filenam you are declaring it local to the loop and not accessible outside that block. Either move the line to outside and after the while block or remove the my inside the loop.
poj