[sf-perl] A simpler perl technicality question.

Fred Moyer fred at redhotpenguin.com
Thu Dec 3 10:49:57 PST 2009

On Wed, Dec 2, 2009 at 9:19 AM, yary <not.com at gmail.com> wrote:
>> Assuming that you're not using Moose, it's well known that you should
>> 'use strict' and 'use warnings'.
> For anyone unfamiliar with Moose, it turns on strictures & warnings
> anyway. It's not a case of Moose being hurt by warn/strict, it's just
> a little redundant. (I would say to still leave them in to make it
> clear they are turned on, but then I've never used Moose much. I
> suppose folks who use it regularly know it by better nature).
> (Insert usual disclaimer about very short "throw away" scripts not
> needing strict, can be quicker to code without it. You will discover
> the border with experience, usually when you make a typo in a variable
> name.)

You should always use strict, especially in the case of short throwaway scripts.

It is like checking the return value of system calls, you should
always do it.  Any time you save by not using strict will end up being
lost in the long run for those few times where you didn't use it and

More information about the SanFrancisco-pm mailing list