.pm location/path question

From: Tom Wiley (tmwilspamnot_at_png.com)
Date: 12/23/04


Date: Wed, 22 Dec 2004 23:29:45 -0500

I am trying to see how well PerlQt works while I also learn Perl and so
far so good, except for understanding how .pm files are accessed.

When I apt-getted the debugger (Devel-ptkdb) it loaded the appropriate .pm
module in /usr/lib/perl/5.8.4 and it worked ok. That is, I assume that
the perl compiler liked where it was put and there are lots of other pm
files in that same folder.

Now, I install both Qt-Designer (free version) and PerlQt and both
environments start up ok. But when I try a tutorial off the PerlQt web
site I get a .pm not found error. Here is the top of the code snippet...

#!/usr/bin/perl -w
use strict;
use blib;
use qt;
(snip)

The error is "Cannot find blib even in /home/pgmr/perlqt/../../../"

So, it can't find blib.pm.

However, blib.pm IS in the /usr/lib/perl/5.8.4 subdirectory with the rest
of the .pm files.

It appears that the message is saying... "Hey dummy, I can't find blib.pm
in the proper place so I looked in your home folder where the program was
started from and I can't find it there either!"

Is there a command to tell Perl to look for a specific module rather than
it just globally looking where .pm files are kept?

Playing around by copying blib.pm to my home folder and other places
doesn't fix the problem so it would appear that perl has to be told where
to find it.

Anybody?

Thanks
TW



Relevant Pages

  • Re: What is the difference between :foo and "foo" ?
    ... It's not that different from Perl ... My understanding is that barewords are not persistent atomic elements of ... but my understanding is that it's ... it's just a wrapper for globs. ...
    (comp.lang.ruby)
  • Re: Saving regex to new variable
    ... > Been a while since I have worked the perl in this manner. ... But you should not try to program by rote. ... can be abreviated to \d in Perl regex ... Please do not just copy and paste the above without understanding it. ...
    (comp.lang.perl.misc)
  • Re: using GD module
    ... Edo wrote: ... > exactly as it is presented, it does not mention any var declaration of ... Never copy/paste code without understanding how it works. ... I think you probably need to learn a little more about Perl and about ...
    (comp.lang.perl.misc)
  • Re: arrays and hashes
    ... Is my understanding of the usage of in the first instance flawed? ... want if you were inducing list context on the LHS. ... It is one of the things that make Perl look more consistent than it ...
    (comp.lang.perl.misc)
  • Re: Best way to create an array of Strings in a called method
    ... It has reinforced my understanding. ... > What I've learnt is: ... > working in Perl and Omnimark for the last 8 years). ... > * When you return a class instance from a method you create the ...
    (comp.lang.java.help)