in reply to File::Find in a loop
Others have answered you base question, so I'll bring up something else.
Why would you execute the find(..) call in a for loop like that, when the find(..) function accepts a list of directories?
my @dir = qw( N:/TMP N:/TMP_2 ); find( \&wanted, @dir ); sub wanted { print "$File::Find::dir $_\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: File::Find in a loop
by vagabonding electron (Curate) on Apr 28, 2013 at 17:29 UTC |
In Section
Seekers of Perl Wisdom