in reply to Unable to get more than one line
use XML::Simple; use Data::Dumper; my $ref = XMLin($filename); print Dumper $ref;