mikejones has asked for the wisdom of the Perl Monks concerning the following question:
thank youuse strict; use warnings; use File::Find ; use File::Find::Closures qw(find_by_min_size) ; <snip> chomp (my $fs = <>) ; if ( $fs =~ m|\x2f{1}?|g ) { ##-- if "/" is matched --# $File::Find::prune = 0; find_me; } elsif ( $fs !~ m|\/\w+| ) { $File::Find::prune = 1; find_me; find_me { my @directory = ($fs) ; use constant MAX_SIZE => (25*1024*1024) ; use constant DIVISOR => (1024) ; my ( $wanted, $list ) = find_by_min_size ( MAX_SIZE ) ; File::Find::find ( { wanted => $wanted, }, @directory ) ; <snip> } <snip>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: file::find question
by hipowls (Curate) on Jan 04, 2008 at 23:57 UTC | |
by mikejones (Scribe) on Jan 05, 2008 at 04:02 UTC | |
by hipowls (Curate) on Jan 05, 2008 at 05:45 UTC | |
by mikejones (Scribe) on Jan 05, 2008 at 15:23 UTC | |
by mikejones (Scribe) on Jan 08, 2008 at 03:11 UTC | |
by plobsing (Friar) on Jan 05, 2008 at 05:00 UTC |