in reply to File:Find doing wierd stuff
wanted wants a reference to a sub ...
find ({wanted => \&wanted }, $arg);
See the docs and perlref for more info. Your error message is telling you that the value of &wanted (namely, true aka 1) is not a reference ...
|
|---|