ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: XML::Simple Error
by Grant McLean other posts by this author
Dec 8 2004 12:04AM messages near this date
view in the new Beta List Site
XML::Simple Error | XML::Simple Error
& XSLT On Wed, 2004-12-08 at 10:39, Nitin Chaumal wrote: 
>  I am trying to get the following code to work on Solaris 8, Perl 5.8.0
<snip>  
>  But i get the error :
>  Can't locate object method "new" via package "XML::SAX::PurePerl" at
>  /software/perl/5.8.0/lib/site_perl/5.8.0/XML/SAX/ParserFactory.pm line 43.
>  
>  Am i missing out on something

Did you try my suggestions here:

  http://www.perlmonks.org/index.pl?node_id=413070

>  I looked up all env varaibles and modified the code to : 
>  #!/usr/bin/env perl
>  use XML::Simple;
>  
>  Can't modify subroutine entry in scalar assignment at
>  /software/perl/5.8.0/lib/5.8.0/Carp.pm line 3, near "'1.01';"
>  BEGIN failed--compilation aborted at
>  /software/perl/5.8.0/lib/site_perl/5.8.0/XML/Simple.pm line 43.
>  BEGIN failed--compilation aborted at solaris.pl line 6.

Good grief that's weird too.  Do you perhaps have more than one 
version of Perl installed?  I wonder if that sort of mess might 
result from running one version of Perl with PERL5LIB pointing 
to the libraries for a different version.

Does this die with an error:

  perl -MCarp -e 1

If so, it's not an XML problem.

If not, does this fail:

  perl -MXML::Simple -e 1

If so, it's probably still not an XML problem, since XML::Simple 
doesn't actually load up an XML parser module until you call XMLin.

Cheers
Grant
Thread:
Nitin Chaumal
Grant McLean

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved