xorl has asked for the wisdom of the Perl Monks concerning the following question:
When there is an error processing something with Text::xSV they get:use lib '/home/foobar/perl_libs'; # user directory for perl modules use Text::xSV;
Can't locate Carp/Heavy.pm in @INC (@INC contains: /home/foobar/perl_libs /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/5.8.0/Carp.pm line 158, <FH> line 1.Now I check if Heavy.pm is there:
$> locate Heavy.pm
/usr/lib/perl5/5.8.0/Carp/Heavy.pm
/usr/lib/perl5/5.8.0/Exporter/Heavy.pm
/usr/lib/perl5/5.8.0 is like the 3rd entry in @INC so it should find it right?
I also looked in xSV.pm.
So there shouldn't be a problem right?package Text::xSV; $VERSION = 0.11; use strict; use Carp;
The only solution I found was to insert a use Carp; just before the use Text::xSV; I don't understand why this worked and I don't understand why there is a problem to start with. Can anyone explain?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Carp::Heavy and Text::xSV
by PodMaster (Abbot) on Aug 02, 2004 at 14:33 UTC | |
by xorl (Deacon) on Aug 02, 2004 at 15:37 UTC | |
|
Re: Carp::Heavy and Text::xSV
by tilly (Archbishop) on Aug 03, 2004 at 15:51 UTC | |
by xorl (Deacon) on Aug 04, 2004 at 20:57 UTC | |
|
Re: Carp::Heavy and Text::xSV
by borisz (Canon) on Sep 21, 2004 at 09:42 UTC |