in reply to Find.pm can't

Use of uninitialized value $cwd in concatenation (.) or string at /usr +/share/perl5/File/Find.pm line 283. Can't cd to : No such file or directory

That's strange... in the source, I don't see $cwd getting set by anything other than Cwd's getcwd (in your case at least). Just as a test, try adding use Cwd; to your code, and right before you call find, add print "cwd: ",getcwd()||$!,"\n"; to see if there's an obvious reason getcwd is failing.

Replies are listed 'Best First'.
Re^2: Find.pm can't
by geoffleach (Scribe) on Aug 31, 2018 at 04:15 UTC
    Coding error (blush!) revealed by your suggestion. Many thanks.