in reply to Not a hash reference... why?

Hello! For tracking data structure i recommend you to use Data::Dumper module. Just do something like below: .... use Data::Dumper; use XML::Simple; use strict; my $xml = new XML::Simple; my $data = $xml->XMLin('cmdb_coh.xml'); print Dumper($data),"\n"; And then inspect your data structure