First page
Back
Continue
Last page
Overview
Graphics
Hashes in Perl
# Easy way to set up.
my %hash = ( "Fred" => 5, "Bob" => 3 );
# Hard way to set up.
my %hash2;
$hash2{Fred} = 5;
$hash2{Bob} = 3;
# Easy to copy.
my %hash3 = %hash2;