Query Method in( @directories )
so ->in($SubDirs); has to be an array, and not a scalar string.
Hint: qw(/etc /dev /bin) creates a nice array with those directories.
Please notice the slash at the beginning. A directory always has that...
perl -MFile::Find::Rule -e 'print join("\n", File::Find::Rule->directory->in(qw(/etc /dev /bin)));'
In reply to Re^4: perl challenge 3
by FreeBeerReekingMonk
in thread Reaped: perl challenge 3
by NodeReaper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |