Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 contemplating the Monastery: (15)
As of 2014-08-20 19:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (122 votes), past polls