Perl XML::LibXML returning different results on different systems



I have a Linux Mint 17 system running perl v5.18.2, with a simple script to fetch some XML:



use XML::LibXML;

$url='http://ift.tt/USmjJs';

$parser = XML::LibXML->new();

$docFetched = $parser->parse_file($url);

print $docFetched;


It returns a full page of XML, which is what I want.


However, when I run this same script on another system (CentOS 6.4) with perl v5.10.1, I get the following:


XML::LibXML::Document=SCALAR(0x1253e40)


What might be the problem?


Any help would be great.


Thanks!


No comments:

Post a Comment