XP is just a number | |
PerlMonks |
Re: pls help me to implement try-catch-throws without using any exception handlingby DamnDirtyApe (Curate) |
on Aug 30, 2004 at 19:07 UTC ( [id://386997]=note: print w/replies, xml ) | Need Help?? |
Put the "try" code inside an eval block, then check the value of $@. Example:
_______________ DamnDirtyApe Those who know that they are profound strive for clarity. Those who would like to seem profound to the crowd strive for obscurity. --Friedrich Nietzsche
In Section
Seekers of Perl Wisdom
|
|