Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

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
04: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.