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.
|
|---|