Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 lurking in the Monastery: (4)
As of 2016-10-01 20:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.