|Think about Loose Coupling|
Re: GOTO considered (a necessary) evil?by sedhed (Scribe)
|on Jul 16, 2002 at 19:20 UTC||Need Help??|
Without getting into the goto issue, may I offer the code I use for tieing a session using Apache::Session::*. It is not a loop at all, therefore no chance of an infinite loop. It makes two tries at a session, once using the supplied ID (if any), and if that fails it tries a second time using undef, to get a new session. Failing that, it dies.