in reply to Get file min and max size help!

Based on what you posted, this:

becomes:

push @files , map { "$d/" . $_} grep { -f && ( -s >= $min_size) && (- +s <= $max_size) } read_dir($d); #this is untested.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg