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
In reply to Carp::Heavy and Text::xSV by xorl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |