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;
In reply to Perl Syntax by kbfiles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |