Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^7: eval to replace die?

by BrowserUk (Patriarch)
on Oct 04, 2010 at 17:57 UTC ( [id://863390]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if( ref( $obj ) eq $type ) { ... 
    ## or
    if( $obj =~ m[=$type$] ) { ...
    
  2. or download this
    if( ref( $exception ) eq $type )
    or grep{ ref( $exception ) eq $_ } @{ $type::ISA } ) {  ...
    ## or
    if( $exception =~ m[=$type$]
    or grep{ $exception =~ m[=$_] } @{ $type::ISA } ) {  ...
    
  3. or download this
    use Exception::Class (
        'MyException',
    ...
            isa => 'MyException'
        },
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-03-29 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found