http://qs1969.pair.com?node_id=1060446

kbfiles has asked for the wisdom of the Perl Monks concerning the following question:

I have some basic perl syntax questions from this beginner. I'm declaring an anonymous array in line 1, but I don't understand what the "0+" is doing in line 2? Also, in line 3, how is the assignment occurring for both $a and $b? As a scalar or an array element?

my $new = [$a, $b] $myhash1{0+ $new} = $new; $myhash2{$_} = $new for $a, $b;