|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re^5: $1 not "freezing" in an additionby grondilu (Monk) |
| on Dec 14, 2012 at 15:36 UTC ( #1008859=note: print w/ replies, xml ) | Need Help?? |
|
Interesting. This gave me the idea of trying this code: $_ = 1; print $_ + $_++;Amazingly enough, this prints 3, not 2 But this does print 2: $_ = 1; print 0+$_ + $_++;
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||