Hi,
I want to verify if a value (alphanumeric value) is defined (no null/blank value) and I can't seem to succeed even though it's simple.
I have tried to use the DEFINED function, but it's not reliable with hashes.
Any help would be appreciated
I want to verify if a value (alphanumeric value) is defined (no null/blank value) and I can't seem to succeed even though it's simple.
Code:
# Value: Phone is (222) 222-2222
my $Value = $Hash->{'Value'};
if ($Value ne '') {
print "Value is defined";
}
I have tried to use the DEFINED function, but it's not reliable with hashes.
Any help would be appreciated