Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Exiting subroutine via next at test.pl line xx
#!c:\perl\bin\perl -w use strict; use File::Find; my $inputDir = $ARGV[0]; find {wanted => \&action, no_chdir => 1}, $inputDir; exit 1; sub action{ next unless m/.txt$/i; my $path = $_; #$File::Find; print "$path\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: suppress warning: Exiting subroutine via next
by pg (Canon) on Oct 30, 2003 at 02:43 UTC | |
|
Re: suppress warning: Exiting subroutine via next
by shenme (Priest) on Oct 30, 2003 at 02:33 UTC | |
|
Re: suppress warning: Exiting subroutine via next
by Anonymous Monk on Oct 30, 2003 at 02:31 UTC |