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! :)
In Section
Seekers of Perl Wisdom