P is for Practical | |
PerlMonks |
Re: perl behavior with print commandby NetWallah (Canon) |
on Feb 17, 2016 at 16:59 UTC ( [id://1155479]=note: print w/replies, xml ) | Need Help?? |
($note +=1) is an "lvalue" - i.e. a value that can be assigned to. "0" (a constant) cannot be assigned to (It cannot take a different value), so perl complains. Note "%=" is essentially an assignment operator. "Think of how stupid the average person is, and realize half of them are stupider than that." - George Carlin
In Section
Seekers of Perl Wisdom
|
|