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

Re: Test::Exception extension with (evil?) overloading

by Aristotle (Chancellor)
on Jan 18, 2003 at 16:41 UTC ( #227988=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $result = lives_ok {$o->answer} 'answer worked';
    is $result, 42, 'answer returned 42';
    
  2. or download this
    is eval { $o->answer }, 42, 'answer returned 42';
  3. or download this
    is do {
        lives_ok {$o->answer} 'answer worked'
    }, 42, 'answer returned 42';
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://227988]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-09-16 01:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (155 votes), past polls