pagod has asked for the wisdom of the Perl Monks concerning the following question:
Can't locate object method "parse_html_file" via package "main" at tes +txml.pl line 25.
Can't locate object method "_init_callbacks" via package "main" at /us +r/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/XML/LibXML.pm +line 823.
#!/usr/bin/perl -w use strict; use XML::LibXML; my $file = shift; my $xmlparser; my $doc; $xmlparser = XML::LibXML::new(); $doc = $xmlparser->XML::LibXML::parse_html_file( $file ) or die "unabl +e to parse $file: $@";
enigma:~/projects/pt] pagod% perl testxml1.pl Use of uninitialized value $class in bless at /usr/lib/perl5/site_perl +/5.10.0/x86_64-linux-thread-multi/XML/LibXML.pm line 191. Explicit blessing to '' (assuming package main) at /usr/lib/perl5/site +_perl/5.10.0/x86_64-linux-thread-multi/XML/LibXML.pm line 191. Can't locate object method "_init_callbacks" via package "main" at /us +r/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/XML/LibXML.pm +line 823. [enigma:~/projects/pt] pagod%
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: scope and packages
by davorg (Chancellor) on Jun 26, 2009 at 09:51 UTC | |
|
Re: scope and packages
by ELISHEVA (Prior) on Jun 26, 2009 at 10:34 UTC | |
|
Re: scope and packages
by Anonymous Monk on Jun 26, 2009 at 09:52 UTC | |
by pagod (Initiate) on Jun 26, 2009 at 09:55 UTC | |
by davorg (Chancellor) on Jun 26, 2009 at 10:01 UTC | |
by pagod (Initiate) on Jun 26, 2009 at 10:15 UTC |