Showing posts with label warnings. Show all posts
Showing posts with label warnings. Show all posts

Monday, August 17, 2009

Am I the only one NOT using "strict"?

An old friend came to town the other day. He's quite a Perl guru. Like me, he was a Perl user prior to Perl 5 and I figured he'd be someone who, like me, NEVER uses 'use strict'; in their code. I was wrong! Man, that's one of the things I like about Perl. It'll let me ride a motorcycle without a helmet. Drive without a seat belt. Go swimming in less than 30 minutes after I've eaten or even run with scissors! I know! I know! These are not good ideas - but short cuts seldom are. It's the price you pay and as long as you know the risks, it's nice that Perl lets you use a variable that has not been declared or invoke $_ with the notion that both Perl and yourself know what you're talking about (in that context). I like that freedom. I guess the other side of the coin is you're also allowed to add "use strict" and "use warnings". I'm just glad it's not the default (yet).