"be consistent" | |
PerlMonks |
Re^5: Puzzling $| behaviorby ikegami (Patriarch) |
on Oct 08, 2007 at 16:58 UTC ( [id://643502]=note: print w/replies, xml ) | Need Help?? |
It's not because of an optimization.
Add $_++; to f and you'll see it print 7, 7 because $_[0] and $_[1] are aliased to $_. It works that way because += returns its LHS as an lvalue.
In Section
Seekers of Perl Wisdom
|
|