#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use XML::Simple; my $xml = XMLin('login.xml'); print Dumper($xml); #### $VAR1 = { 'LOGIN' => { 'firstName' => 'Alice', '_AgeAtApplicationYears' => '33', 'phone' => '111-111-1111', 'state' => 'HI', 'zip' => '11111', 'userName' => 'testUser', 'lastName' => 'Firstimer', 'address' => '111 test street' } };