good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
However, the ++'s operator's magic applies to strings that =~ m/^[a-zA-Z]*[0-9]*\z/. "a,b" doesn't match.
I suspect that in the third case perl is calling int($m), which returns 0, then applying the prefix increment operator. Code tags added by GrandFather
-- jpg In reply to Re^2: Increment avoids warning unexpectedly
by jpeg
|
|