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


in reply to Re^4: More Misleading Compiler Error Messages
in thread More Misleading Compiler Error Messages

The single statement $s+1 = shift . '!'; causes both a warning and an error usefully. That's the usual case.