nvivek has asked for the wisdom of the Perl Monks concerning the following question:
In Perl,Exception handling done by using Error.pm module.In that,there are try,catch,finally,except and some other blocks to handle exceptions.I have understood try,catch,finally blocks.I have the following doubt in except and otherwise block. When an exception is thrown,if there are no particular catch block,then it will go to except block and execute the statements in it.At the time,if I have otherwise block,that also got executed.I don't know why is it working like this.Kindly explain. For your note,if the exception caught by particular catch block,then both except and otherwise blocks aren't executed.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Exception Handling in Perl
by chromatic (Archbishop) on Apr 27, 2010 at 05:26 UTC | |
Re: Exception Handling in Perl
by nvivek (Vicar) on Apr 28, 2010 at 04:16 UTC | |
by GrandFather (Saint) on Apr 28, 2010 at 04:51 UTC | |
Re: Exception Handling in Perl
by nvivek (Vicar) on Apr 28, 2010 at 05:43 UTC |
Back to
Seekers of Perl Wisdom