in reply to Re^3: perl challenge 3
in thread Reaped: perl challenge 3
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)));'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: perl challenge 3
by johnrock47 (Initiate) on Dec 16, 2015 at 01:48 UTC | |
by Anonymous Monk on Dec 16, 2015 at 20:46 UTC | |
by Anonymous Monk on Dec 16, 2015 at 21:18 UTC |