geoffleach has asked for the wisdom of the Perl Monks concerning the following question:
The referenced directory remains. FWIW, here's the details under perl -d$CDs = '/usr/local/opt/podcasts/CDs'; sub dir_addup { my $st = stat($File::Find::name); $dir_total += $st->size; } find(\&dir_addup, $CDs); some stuff, including creating subdir and adding files therein find(\&dir_addup, $CDs); Use of uninitialized value $cwd_untainted in chdir at /usr/share/perl5 +/File/Find.pm line 282. 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
Use of uninitialized value $cwd_untainted in chdir at /usr/share/perl5 +/File/Find.pm line 282. at /usr/share/perl5/File/Find.pm line 282. File::Find::_find_opt(HASH(0x555f6ead3b50), "/usr/local/opt/podcas +ts/CDs/Django_Reinhardt_Djangology_08") called at /usr/share/perl5/Fi +le/Find.pm line 760 File::Find::find(CODE(0x555f6ed3e838), "/usr/local/opt/podcasts/CD +s/Django_Reinhardt_Djangology_08") called at CD_rip.pl line 126 Use of uninitialized value $cwd in concatenation (.) or string at /usr +/share/perl5/File/Find.pm line 283. at /usr/share/perl5/File/Find.pm line 283. File::Find::_find_opt(HASH(0x555f6ead3b50), "/usr/local/opt/podcas +ts/CDs/Django_Reinhardt_Djangology_08") called at /usr/share/perl5/Fi +le/Find.pm line 760 File::Find::find(CODE(0x555f6ed3e838), "/usr/local/opt/podcasts/CD +s/Django_Reinhardt_Djangology_08") called at CD_rip.pl line 126 Can't cd to : No such file or directory at /usr/share/perl5/File/Find.pm line 283. File::Find::_find_opt(HASH(0x555f6ead3b50), "/usr/local/opt/podcas +ts/CDs/Django_Reinhardt_Djangology_08") called at /usr/share/perl5/Fi +le/Find.pm line 760 File::Find::find(CODE(0x555f6ed3e838), "/usr/local/opt/podcasts/CD +s/Django_Reinhardt_Djangology_08") called at CD_rip.pl line 126
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Find.pm can't
by haukex (Archbishop) on Aug 30, 2018 at 21:27 UTC | |
by geoffleach (Scribe) on Aug 31, 2018 at 04:15 UTC | |
|
Re: Find.pm can't
by h2 (Beadle) on Jan 06, 2020 at 07:48 UTC |