File::Find throws this exception when the second argument passed to find is undef. What's in @directories_to_search at that point?
(As a side note, Switch often makes for strange debugging sessions. It's been deprecated; you're far better off using smart match or if/else.)
Improve your skills with Modern Perl: the free book.
In reply to Re: Invalid top directory at C:/Perl/lib/File/Find.pm line 598
by chromatic
in thread Invalid top directory at C:/Perl/lib/File/Find.pm line 598
by JHermida
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |