in reply to Re^3: Help with $File:Find
in thread Help with $File:Find
find( { wanted => \&get_files, preprocess => \&nodirs }, "$BASEDIR +/$dir" ); sub nodirs { grep !-d, @_; } sub get_files { my @array; push @array, $File::Find::name if ( (/^(?!\.).*\.($INTYPES)$/i +) || ( (/^(?!\.).*\.($INTYPES)\.($ENGZTYPES)$/i) && !(/\.($OUTTYPES)\ +.($ENGZTYPES)$/i) ) ); foreach (@array) { if ( ( exists( $globalfiles{$_} ) ) && ( ( $globalfiles{$_ +} ne 'submitted' ) || ( $globalfiles{$_} ne 'working' ) ) ) { next; } else { if ( -e $_ ) { my $lckfile = getlckfile($_); if ( -e $lckfile ) { next; } push @tmparray, $_; } } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5:Help with $File:Find
by Marshall (Canon) on Feb 16, 2018 at 23:09 UTC | |
by roperl (Beadle) on Feb 20, 2018 at 18:22 UTC | |
by roperl (Beadle) on Feb 20, 2018 at 18:52 UTC | |
by beech (Parson) on Feb 21, 2018 at 05:13 UTC | |
by Marshall (Canon) on Feb 21, 2018 at 02:57 UTC | |
by roperl (Beadle) on Feb 21, 2018 at 18:24 UTC | |
|