Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Using Perl Exception Class

by Corion (Patriarch)
on Apr 20, 2011 at 11:29 UTC ( [id://900313]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Using Perl Exception Class
in thread Using Perl Exception Class

Have you read the documentation I linked? Searching the documentation for "throw" shows me:

# try eval { MyException->throw( error => 'I feel funny.' ) };

If you are unclear about the concept of structured exceptions in Perl, I can only recommend to avoid them alltogether. Structured exceptions are not well-supported in Perl, as the common way of exceptions are strings, as documented in die. If you feel you need to use something else, you should have good reasons to do so.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-20 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found