Stories
Slash Boxes
Comments

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Wednesday October 17, 2007
05:53 AM

Writing Perl::Critic Policies

[ #34703 ]

I really need to learn to write Perl::Critic policies. There are three serious bugs here which even Perl::Critic's "harsh" setting ignores. At least one of them caused me to waste about 10 minutes of debugging today.

#!/usr/bin/perl

use strict;
use warnings;

my $foo, $bar = foo();
my ( $foo, $bar ) = foo() || '';

sub foo {
    my ( $foo, $bar ) = shift;
    return ( $foo, $bar );
}

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.