in reply to File::Find::Rule - error message with use of

(extract)
foreach (@subdirs){ # declared but not used my $directory_current = $_; # later my @files = $rule->in( @subdirs ); }
What output are you expecting?