in reply to Stopping empty files from been pushed into an array.
Sure, just don't push the file onto the array if they're empty:
push @array, $file_name unless length($file_contents) < 1;
Update: Corrected len to length. (Too much Python today at work...)
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Stopping empty files from been pushed into an array.
by Your Mother (Archbishop) on May 13, 2015 at 20:38 UTC | |
by FreeBeerReekingMonk (Deacon) on May 13, 2015 at 22:33 UTC | |
by roboticus (Chancellor) on May 14, 2015 at 02:43 UTC |