stevan / p5-App-Critique

An incremental refactoring tool for Perl powered by Perl::Critic
3 stars 4 forks source link

Protect process against perlcritic deaths. #29

Closed stuartskelton closed 8 years ago

stuartskelton commented 8 years ago

This is a fix for #28, in the process, I don't have to update #26, as the predication is already eval'ed.

stuartskelton commented 8 years ago

I am unsure how to set up in the test suite.

stevan commented 8 years ago

Patch looks great, one small change please, I have a particular way in which I would like to do exception handling. Basically following this pattern:

my @var;
eval {
    @var = something();
    1;
} or do {
    warn $@;
};

Thanks again :)