Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found