5 minimums for any perl script?

Paul Johnson paul at pjcj.net
Mon Jan 30 15:26:35 GMT 2012

On Mon, Jan 30, 2012 at 03:00:00PM +0000, Sam Kington wrote:

> One problem with perlcritic is that many of its rules, out of the box, are silly and annoying. You need to do a fair amount of tweaking to stop it bitching about stuff you don't care about, before you can get to the bits where it's actually useful. Here's $WORK's standard perlcriticrc:

I wouldn't argue with most of those (though I don't use perlcritic
myself anyway) but

> # Checking return values is a good thing. Checking the return value of
> # close or print STDERR is downright silly.
> [InputOutput::RequireCheckedSyscalls]
> functions = :builtins
> exclude_functions = print close

could you explain why you think checking the return value of close() is
silly?  I tend to have the opposite opinion.

Paul Johnson - paul at pjcj.net

More information about the london.pm mailing list