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.