Subject: | Warnings due to undefined values |
Hi Ken,
I'm not sure if this is an error in PathTools or Apache::Test or perhaps one of my tests. However, the error message is coming from PathTools so I'll start here. I'm using v3.01 under ActiveState Perl v5.8.3 on WinXP.
Here is the output in the error log:
[Thu Feb 10 02:13:19 2005] -e: Use of uninitialized value in transliteration (tr///) at C:/Perl/site/lib/File/Spec/Win32.pm line 99.
[Thu Feb 10 02:13:19 2005] -e: Use of uninitialized value in pattern match (m//) at C:/Perl/site/lib/File/Spec/Win32.pm line 101.
It appears that @args contains an undefined item as simply adding the following line avoids the error:
$_ = '' unless defined $_;
Should this be handled by File::Spec::Win32 or is it up to the calling code? Any ideas of how to debug this (as you know, catdir is called a lot in the A::T distribution)?
Thanks,
William