programming-examples/perl/Hash/Hashes Assignment in action.pl
2019-11-15 12:59:38 +01:00

12 lines
261 B
Perl

%seasons=("A" => "Spring",
"B" => "Summer",
"C" => "Fall",
"D" => "Winter",
);
%days=("Mon" => "Monday",
"Tue" => "Tuesday",
"Wed" => undef,
);
$days{"Wed"}="Wednesday";
$days{5}="Friday";