On Thu, Mar 27, 2008 at 11:36 AM, Peter Gordon <[EMAIL PROTECTED]> wrote:
> I have a program which is several subroutines deep.
>
>  level 1
>   level 2
>     level 3
>      level 4
>
>
>  At level 4, instead of doing a "return", I would like to skip back to
>  level 2. The issue is that I don't want to change the code at level 3 to
>  check return codes.


You can throw an exception at level 4 and catch it on level 2.

Gabor


-- 
Gabor Szabo
http://www.szabgab.com/
Perl Training in Israel http://www.pti.co.il/
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to