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 ); } } }
In reply to Re^6: Help with $File:Find
by roperl
in thread Help with $File:Find
by roperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |