Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

comment on

( #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: => C:/Program Files/Rational/Common/lib/perl5/5.8.6/MSWin32-x86-mult
warnings/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/warning
s/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/
File/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/File/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/MSWin32-x86-multi-
thread/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/
Exporter/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/Exporter/H => install/../etc/
File/Spec/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/File/Spec/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/
File/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/File/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/MSWin32-x86-multi-thr
ead/ => install/../etc/
File/Spec/ => C:/Program Files/Rational/Common/lib/perl5/5.8.6/File/Spec
/ => install/../etc/
Undefined subroutine &main::cwd called at install\ 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

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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2023-12-05 15:13 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (27 votes). Check out past polls.