in reply to Get file min and max size help!
Try adding parenthesis, as indicated by the error message. I've not tried it, but I'd suggest starting with:
push @files , grep { -f && (-s >= $min_size) && (-s <= $max_size) +} map { "$d/$_" } read_dir ($d);
Note: I've added the map bit, as it looks like that's what you were wanting.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Get file min and max size help!
by Anonymous Monk on Aug 29, 2011 at 14:33 UTC | |
by roboticus (Chancellor) on Aug 29, 2011 at 19:00 UTC | |
by Corion (Patriarch) on Aug 29, 2011 at 19:05 UTC |