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
Frustration with XML::Simple
by Nitin Chaumal other posts by this author
Dec 7 2004 10:01PM messages near this date
view in the new Beta List Site
Re: utf-8 (or not) encoding question | Identifiers in SAX Locators
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.

This is just one line of code which is driving me nuts
Any help/pointers would be very helpful.

Nitin

-----Original Message-----
From: perl-xml-bounces@[...].com
[mailto:perl-xml-bounces@[...].com]On Behalf Of Nitin
Chaumal
Sent: Wednesday, December 08, 2004 3:09 AM
To: perl-xml@[...].com
Subject: XML::Simple Error



hi

I am trying to get the following code to work on Solaris 8, Perl 5.8.0

-----------------------------
use XML::Simple;
use Data::Dumper;

use strict;

my $xmlobj = XML::Simple-> new();
my $xmldoc = $xmlobj-> XMLin('./sample.xml');

print Dumper($xmldoc);

-----------------------------

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

Nitin




*********************************************************
Disclaimer:

This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


*********************************************************
Disclaimer:          

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*********************************************************
Visit us at http://www.mahindrabt.com

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

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