my $attr_value = $_->{'att'}->{'value'}; $attr_value = 'fault' if not defined $attr_value;