Help for this page
# functionally speaking, this.... %hash = ('a' => 1, 'b' => 2, 'c' => 3); ... # is the same as this... myfunc('a', 1, 'b', 2, 'c', 3);
$scalar = 'blue'; %hash = ('a' => 1, 'b' => 2); ... my %hash = @_; print $hash{'a'}; }
%hash = ('a' => 1, 'b' => 2); $scalar = 'blue'; ... my($hashref,$scalar) = @_; print $hashref->{'a'}; }