This prints:use strict; my $a = 100; my $b = 200; my $c = ($a, $b++)[0];# force it into array context print $a, "\n"; print $b, "\n"; print $c, "\n";
100 201 100
In reply to Re: Unexpected variable assignment
by pg
in thread Unexpected variable assignment
by simon.proctor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |