Can anyone help me understand what is going on in this situation?
$a = 1;
$b = 2;
$c = 3;
print "$a $b $c\n";
for ($a, $b, $c){
$_++;
}
print "$a $b $c"
Output:
1 2 3
2 3 4
When I originally wrote this I thought that Perl might store a reference to each variable in $_ so I used $$_++...