2 ms·
As a long time Perl guy (I had a few websites break when my ISP upgraded from Perl4 and all my email addresses broke with unescaped @ symbols), I think of stric
by bigiain 15y ago
As a long time Perl guy (I had a few websites break when my ISP upgraded from Perl4 and all my email addresses broke with unescaped @ symbols), I think of strict and warnings as being like speed limits. It's a _really_ good idea for inexperienced drivers/perl-programmers to stick to them. Once you've got a bit of experience behind you, you can choose when to ignore that good advice - and just like teenaged boys in cars, mostly people make that choice before they're actually experienced enough to have made a good call, and the near-misses/speeding-tickets/accidents as a result of those poor calls is what ends up becoming the foundations of real experience later on.
I'm firmly of the opinion that telling everybody (especially inexperienced Perl programmers) "you've got to use strict and warnings" is the right approach - with the unstated acknowledgement that if you know what you're doing and are prepared to accept the risks, you'll occasionally choose to ignore that advice.