develooper Front page | perl.beginners | Postings from April 2010

XML Parser Error

Thread Next
Open Source
April 15, 2010 10:42
XML Parser Error
Message ID:
I'm getting this error:

Undefined subroutine &XML::Simple::XMLin called at ./ line 3.

Here's my code and input file:

use XML::Simple;
use Data::Dumper;
$data = XMLin("sample.xml");
print Dumper($data);

<?xml version='1.0'?>

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About