Re:Why Perl Didn't Win
by mike-cardwell on Monday June 09, 2014 @05:14AM
(#7867593)
I've been writing perl for over ten years. I think I learned to stick "use strict; use warnings;" at the top of my scripts on day number 1. God only knows why so many other Perl programmers never learnt this.
This is why disciplined (i.e. non-tiny-script-y) perl code starts off with
just like disciplined javascript starts off with and disciplined C code enables compiler warnings, and truly disciplined C code makes those fatal, just like in perl you can do If you don't do that, then you get the short script/one liner style behaviour where, just like sed, awk or bash, it assumes you know what you're doing. If you don't, then you should be asking the VM to help tell you when those problems exist, same as 'set -x' in bash is incredibly useful if you don't plan to add '|| exit 255;' onto the end of every command.