use XML::Simple; my $ref = XMLin( $xmlfile);