http://qs321.pair.com?node_id=711038

emgrasso has asked for the wisdom of the Perl Monks concerning the following question:

This snippet of code:

use ClearConn;
use ClearConnDBs;
use ClearConnVobs;
use CWD;
use File::Copy;
#print "\@INC is @INC\n";
print map {"$_ => $INC{$_}\n"} keys %INC;
my $pwd=cwd();
print $pwd."\n";

is producing the following output:

XSLoader.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/MSWin32-x86-mult
i-thread/XSLoader.pm
warnings/register.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/warning
s/register.pm
warnings.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/warnings.pm
File/Copy.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/File/Copy.pm
Config.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/MSWin32-x86-multi-
thread/Config.pm
Carp.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/Carp.pm
Exporter/Heavy.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/Exporter/H
eavy.pm
ClearConnVobs.pm => install/../etc/ClearConnVobs.pm
File/Spec/Unix.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/File/Spec/
Unix.pm
strict.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/strict.pm
Exporter.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/Exporter.pm
vars.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/vars.pm
File/Spec.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/File/Spec.pm
CWD.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/MSWin32-x86-multi-thr
ead/CWD.pm
ClearConn.pm => install/../etc/ClearConn.pm
File/Spec/Win32.pm => C:/Program Files/Rational/Common/lib/perl5/5.8.6/File/Spec
/Win32.pm
ClearConnDBs.pm => install/../etc/ClearConnDBs.pm
Undefined subroutine &main::cwd called at install\ClearConnConfig.pl line 57.

So perl is finding the module, but not actually using it. The three ClearConn modules with the relative paths are being both seen and used correctly. I don't know about the other libraries with absolute paths (File::Copy was being flakey yesterday when CWD was working ok.)

C:\ClearConn>cqperl -ver

This is perl, v5.8.6 built for MSWin32-x86-multi-thread

Rebooting the windows box did not help. This script was running cwd fine yesterday, and I can't think of any changes I have made that would affect the namespace.

I'd appreciate any hints for things to look at, or ways to get things working again.