in reply to Is pushing strict and warnings still relevant?

I don't know how many PerlMonks SOPW threads you read, but there are still regularly plenty of people whose problems would have been solved or at least made more obvious if they had used strict and warnings. Note that use v5.12; (and up) automatically enables strict. So yes, Use strict and warnings so still very much relevant to wisdom seekers and there's a reason it's the first item on the Basic debugging checklist.

Replies are listed 'Best First'.
Re^2: Is pushing strict and warnings still relevant?
by stevieb (Canon) on Apr 06, 2015 at 22:30 UTC

    I check in when I can, as $time + $life permits.

    I learned how to program using Perl, and there is no other site on the Internet that holds the formation, loyalty, cleanliness and purity like this one has. Not even some of my past engineering mailing lists have held up.

    I did know that v5.12+ use inherently, but I was looking for the current de-facto standard on what I do when I post code samples, by getting info from current loyalists instead of having to go dig for this info. I feel the answer is yes; keep promoting it.

    -stevieb

      I was looking for the current de-facto standard on what I do when I post code samples

      Ah, I see. Not sure if there's a "standard"... what I do differs depending on the situation. If the wisdom seeker's troubles would be helped by strict and warnings, or even if they are just new to Perl and post code without the pragmas enabled, they should of course be reminded to enable them (my personal opinion is that they're something that only experienced Perlers should turn off). If I'm posting whole scripts, I include the pragmas along with the shebang line, but when I'm posting short code snippets of a few lines meant for copy & pasting, and which should run the same with or without strict and warnings, I usually test with the pragmas enabled (I invoke Perl as perl -wMstrict) but omit them from the post for brevity. But that's just my approach, other Monks do it differently, but as far as I can tell most people seem to follow the "best practice" of enabling strict and warnings.