# notional dereference, use whatever is correct for your xml struct $xml->{'Level'} = eval $xml->{'Level'};