- - - - - - - - - - - - - - - - - - - - - - - - - - - #### id, phone, fax, city, county, zip #### my $xp=XML::XPath->new(filename=>$file); my $hash; my $id=$xp->find('//Associationid'); my $phone->find('//OfficePhone'); ... ... if ($id->get_nodelist){ $hash{$id}{$phone}{$fax}{$county}{$zip}; } #### Can't call method "get_nodelist" on an undefined value