Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for looking!#!/usr/bin/perl -w use strict; ... my @directories = qw( /files1 /files2); my $min_size = 1024; my $max_size = 1048576; #1MB for my $dirs (@directories) { push @files, grep { -f && -s _ >= $min_size && -s _ <= $max_size} +read_dir( $dirs, prefix => 1 ); print "\n These files are passed the size limit: @files\n"; } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting oversize file into an array help!
by onelesd (Pilgrim) on Oct 24, 2011 at 20:21 UTC | |
by Anonymous Monk on Oct 25, 2011 at 18:35 UTC |