[Chicago-talk] A Perl::Critic question
Steven Lembark
lembark at wrkhors.com
Sat Apr 10 20:10:21 PDT 2010
On Fri, 9 Apr 2010 16:33:22 -0500 (CDT)
Mike Fragassi <frag at ripco.com> wrote:
>
> This is not a big deal, but is confusing me.
>
> According to the docs, both of these should turn off Perl::Critic within
> foo():
>
> 1) sub foo { ## no critic
> 2) sub foo {
> ## no critic
>
> But I'm finding that only the former works. Is there something about
> the #2 form that I'm missing? (This is with the most recent
> Perl::Critic and perl 5.8.5.)
Maybe it just wants you to use intelligent braces:
sub foo
{ ## no critic
}
--
Steven Lembark 85-09 90th St.
Workhorse Computing Woodhaven, NY, 11421
lembark at wrkhors.com +1 888 359 3508
More information about the Chicago-talk
mailing list