in reply to Double your return!!!!

I think the example you give is a fine way to handle it.

Actually allowing a called subroutine to force its caller to return could make for some pretty unmaintable code. Needing that would probably indicate an opportunity to improve the design.

Other than for deliberate obfuscation, I can't think of one good reason why someone would want such a thing. Can you provide one?

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Double your return!!!!
by bsb (Priest) on Feb 19, 2003 at 05:07 UTC
    No.

    I can think of uses but, as you say, wishing for a double return is probably a red-flag.

    I just like knowing what Perl can do and can't do.