But then, you are using exceptions for flow control when what you really need is some kind of unwind-protect. For instance Guard.
How do you figure?
I raise an exception in case of error -- this isn't using exceptions for flow control, exceptions aren't used to return a value from the sub
so I included both ret and err in the exception -- this isn't using exceptions for flow control ... I simply didn't scrutinize the if statement beyond counting/naming the vars which I included in the exception
In reply to Re^5: exiting a subroutine neatly (Throwable)
by Anonymous Monk
in thread exiting a subroutine neatly
by Mavebe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |