$VAR1 = {
'version' => '2.0',
'xmlns:media' => 'http://search.yahoo.com/mrss/',
'fileSet' => {
'time' => '1499387013',
'fileName' => 'Atlanta_Regency.gif',
'emailAddress' => 'johndoe@gmail.com',
'requesterName' => 'John Doe',
'showAbbreviation' => {},
'zoneColor' => '0'
}
};
####
my $showAbbreviation = $current->{'fileSet'}->{'showAbbreviation'};
if ( not defined $showAbbreviation ) {
$showAbbreviation = "";
}
####
if (exists $current->{'fileSet'}->{'showAbbreviation'} ) {
$showAbbreviation = $current->{'fileSet'}->{'showAbbreviation'};
print "Yes: $showAbbreviation\n";
} else {
$showAbbreviation = "";
print "No: $showAbbreviation\n";
}