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.


In reply to Module is in %INC, but names are not recognized by emgrasso

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.