in reply to Re^5:Help with $File:Find
in thread Help with $File:Find
find( { wanted => \&get_files }, "$BASEDIR/$dir" ); sub get_files { return unless ( -f $_ ); my $tmpfile = $File::Find::name if ( ($_) && ( (/^(?!\.).*\.($ +INTYPES)$/i) || ( (/^(?!\.).*\.($INTYPES)\.($ENGZTYPES)$/i) && !(/\.( +$OUTTYPES)\.($ENGZTYPES)$/i) ) ) ); if ( ( exists( $globalfiles{$tmpfile} ) ) && ( ( $globalfiles{ +$tmpfile} ne 'submitted' ) || ( $globalfiles{$tmpfile} ne 'working' ) + ) ) { return; } else { if ( -e $tmpfile ) { my $lckfile = getlckfile($tmpfile); push @tmparray, $tmpfile unless ( -e $lckfile ); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Help with $File:Find
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 | |
by Marshall (Canon) on Feb 22, 2018 at 21:18 UTC |