Perl: the Markov chain saw | |
PerlMonks |
Re: Why does the first $c evaluate to the incremented value in [$c, $c += $_] ?by hazylife (Monk) |
on Mar 04, 2014 at 20:58 UTC ( [id://1076957]=note: print w/replies, xml ) | Need Help?? |
Very strange indeed. And it doesn't even have to be a state variable, i.e.
gives the same result. Whereas [$c+0, $c += $_] produces and so does [my $tmp = $c, $c += $_]
In Section
Seekers of Perl Wisdom
|
|