in reply to Can't locate object method "new" via package "XML::LibXML::SAX"

is this is a known issue with perl ? Also if any of the higher versions resolve this ?

Doesn't appear to be an issue with perl, you can tell by the way perl gives you a nice error message -- the problem is most likely with your code

  • Comment on Re: Can't locate object method "new" via package "XML::LibXML::SAX"

Replies are listed 'Best First'.
Re^2: Can't locate object method "new" via package "XML::LibXML::SAX"
by rupesht (Initiate) on Dec 03, 2012 at 17:29 UTC
    code snnipet line number wise

    Contents of my_script.pl and modules are

    Line# 1 ## Comments .. 11## Comments 12 13 use strict; 14 15 use Getopt::Std; # Command line options processing 16 17 use lib "/app/base_lib/cpath1"; ---->18 use mypkg1::common_mod2 qw(:all);

    Contents of common_mod2.pm are

    Line# 1 package mypkg1::common_mod2; 2 3 ################################################ #commnets .. .. 12 ################################################ 13 14 use strict; 15 use LWP::UserAgent; 16 use HTTP::Request::Common; 17 use XML::Simple; 18 19 use lib "/app/base_lib/cpath1"; ---->20 use mypkg1::common_mod1 qw(:all);

    Contents of common_mod1.pm are

    Line# 1#comments .. 82#comments 83 # Listed here are the other packages 84 use Cwd qw(abs_path); 85 use File::Basename; 86 use Fcntl qw( :flock ); 87 use lib "/app/base_lib/cpath1"; ---->88 use MYLIBS qw( :all ); 89 use MYLogging; 90 use Digest::SHA1 qw(sha1_hex);

    Contents of MYLIBS.pm are

    Line 1 # .. 15 ############################################################## +########## ##### 16 package MYLIBS; 17 18 use strict; 19 use XML::Simple; 20 use Data::Dumper;

      I have posted code snippet for the errors above, any thought what could be the reason for these errors?

      Could it be due to version incompatibility of packages perl(perl-5.8.5-57) , libxml2( package(2.6.16-12.9 ) or perl-xml ?