I'm getting this error: Undefined subroutine &XML::Simple::XMLin called at ./sample.pl 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'?>
<employee>
<name>John</name>
<age>43</age>
<gender>M</gender>
<department>Operations</department>
</employee>
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
