Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

ND

by ND (Initiate)
on Aug 10, 2017 at 12:52 UTC ( #1197162=user: print w/replies, xml ) Need Help??

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Discipulus]: in other words: i have a contructor that carps on missing arguments and I want to test that it fails correctly, without carping out in the test output
[Corion]: Discipulus: I usually redefine carp to be something that logs the error message... Maybe my $old_carp = \&Carp::carp; { no warnings 'redefine'; sub Carp::carp = sub { push @caught, [caller(), \@_]; die }

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2018-01-22 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (233 votes). Check out past polls.

    Notices?