programming-examples/perl/Hash/Using 'if exists' to check the entry in hash.pl
2019-11-15 12:59:38 +01:00

13 lines
161 B
Perl

#!/usr/bin/perl -w
use strict;
my %where = (
A => "AA",
B => "BB",
C => "CC",
D => "DD"
);
print "A!\n" if exists $where{A};