Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Neuron's scratchpad

by Neuron (Initiate)
on Sep 02, 2010 at 10:47 UTC ( #858546=scratchpad: print w/replies, xml ) Need Help??

Anonymous users can't see the scratchpads of new monks.

Please log in if you want to view this scratchpad.

At Level 4, a monk's scratchpad becomes visible to even anonymous visitors.

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?