Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Why is my test failing?

by haoess (Curate)
on Mar 06, 2008 at 11:21 UTC ( #672431=note: print w/replies, xml ) Need Help??


in reply to Why is my test failing?

eval { use Test::Perl::Critic (-profile => 't/perlcriticrc'); };

What gives? The eval should catch if Test::Perl::Critic is not installed right?

No. You are using eval BLOCK syntax, so the use statement is executed at compile time. To get this catched use eval STRING as in

eval "use Test::Perl::Critic (-profile => 't/perlcriticrc')";

-- Frank

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://672431]
help
Chatterbox?
[LanX]: I told you the story about the “new" currency trading system of Dresdner Bank
[LanX]: ?
[Corion]: No, or I don't remember the story ;)
LanX my favourite don't tell me the proof of concept is good enough for production anecdote
[ambrus]: ah, it's one of thos

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2017-03-29 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (348 votes). Check out past polls.