Closed p5pRT closed 20 years ago
== patch to pwd.pl follows ==
I had a script that I wrote long ago that required pwd.pl when I ran it recently it gave the same errors as the one line example
dd:jtag$ perl -w -le 'require "pwd.pl"; &initpwd;' Use of uninitialized value in numeric eq (==) at /usr/local/lib/perl5/5.5.660/pwd.pl line 38.
I can switch to using Cwd
dd:jtag$ perl -w -MCwd -le 'Cwd::chdir_init' dd:jtag$ /bin/pwd
/home/hobbes/sw/project/486tools/src/jtag dd:jtag$ echo $PWD /home/hobbes/sw/project/486tools/src/jtag
but it appears that the code in pwd.pl needs to be patched like Cwd.pm was\, since the stats may fail and return undefined value
Migrated from rt.perl.org#2219 (status was 'resolved')
Searchable as RT2219$