if (exists $current->{'fileSet'}->{'showAbbreviation'} ) { $showAbbreviation = $current->{'fileSet'}->{'showAbbreviation'}; print "Yes: $showAbbreviation\n"; } else { $showAbbreviation = ""; print "No: $showAbbreviation\n"; }