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 ]

kaare (663)

kaare
  (email not shown publicly)

Journal of kaare (663)

Wednesday October 31, 2007
06:08 AM

Perl::Critic && Perltidy

[ #34800 ]

Two issues emerged from Jonas' Perl::Critic talk at yesterdays CPH.pm meeting.

Straying away from the topic, I learned that Perltidy won't accept Error.pm's try/catch/otherwise as a control structure and consequently doesn't format it the way I like. I like to cuddle my elses (yes, I'm that kind of guy) and would like this formatting for a try block

try {

        do something

} catch ... with {

        do something

} otherwise {

        do something

};

but it seems that Perltidy can't do that. Can anyone confirm this?

The other issue is that Perl::Critic fails make test. I tried on a fairly OK Perl installation, and I see that this issue already has been reported:

t/20_policies.............................NOK 69/682
# Failed test 'BuiltinFunctions::RequireGlobFunction - line 19 - Multiple globs via '
# at t/20_policies.t line 95.
# got: '2'
# expected: '1'
# Violation found: Glob written as at line 2, column 11. See page 167 of PBP.
# Violation found: Glob written as at line 2, column 19. See page 167 of PBP.

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.