in reply to How to exit subroutine and go to Beginning of CGI Script?
It can be done with goto, but it's a very, very bad idea. You probably need to rethink your design, but I couldn't say how without more details, so I leave the rest to you.
Update: After some CB chatter, some thought saying "very, very bad idea" was too strong without more explaination. However, I don't think I could do better than the classic Go To Statement Considered Harmful (external link).
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|