.pm location/path question
From: Tom Wiley (tmwilspamnot_at_png.com)
Date: 12/23/04
- Next message: mgoland_at_optonline.net: "Re: LWP get only <center> img"
- Previous message: Mallik: "NCR to Shift JIS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: mgoland_at_optonline.net: "Re: LWP get only <center> img"
- Previous message: Mallik: "NCR to Shift JIS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|