in reply to Stopping empty files from been pushed into an array.
Very hard to help when we can't see your code. Be sure to follow these guidelines.
Without seeing, I can guess at a solution: test the file size before you do the push.
push @filelist,$filename unless -z $filename;
|
|---|