http://www.perlmonks.org?node_id=554082

jesuashok has asked for the wisdom of the Perl Monks concerning the following question:

dear monks,

#!/usr/bin/perl -w $m="a"; print ++$m; # Prints "b", as expected $m="a,b"; print $m+0; # Prints 0, as expected # throws a warning also as expected $m="a,b"; print ++$m; # Prints 1, as expected # but throws no warning
I would have expected that since the automagic increment was avoided in the third case that a warning should have been thrown that the argument "a,b" wasn't numeric.

"Keep pouring your ideas"