programming-examples/perl/Hash/Delete an entry in hash.pl

13 lines
224 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
use strict;
my %where = (
G => "Dallas",
L => "Exeter",
I => "Reading",
S => "Oregon"
);
delete $where{L};
print "Lucy lives in $where{L}\n";