- or download this
sub foo{
my ($hashref) = @_;
...
my %hash = (Gobs=>'many', of=>'loads', data=>'Huge');
...
foo( \%hash);
- or download this
sub foo{
my (%hash) = @_; #! Wrong!
...
}
...
foo( %hash ); #! Wrong!
- or download this
exists $b{$k} or delete $a{$k} while ($k,$v) = each %a;
- or download this
exists $b{$k} and $c{$k}=$v while ($k,$v) = each %a