http://qs1969.pair.com?node_id=1191262


in reply to Re: Subroutine processes only one file in the directory
in thread Subroutine processes only one file in the directory

I did that and it works! And you are right, when I was printing $filename, it returned one! Unfortunately I had a file named 1 and I thought it was only taking the last file in the array! Thanks for the help! :)