in reply to complex iterator needed

Move all of your lexicals into your object and write code like:

sub generate { my( $self )= @_; goto $self->{GOTO} if $self->{GOTO}; ... $self->{GOTO}= 'gnarfle'; return ...; gnarfle: ... }

- tye        

Replies are listed 'Best First'.
Re: Re: complex iterator needed (goto)
by Tommy (Chaplain) on Feb 01, 2004 at 02:32 UTC

    cooooooooooooool

    Why do the simplest methods always evade me?

    --
    Tommy Butler, a.k.a. TOMMY
    
      Why do the simplest methods always evade me?

      Cause you're a pinball wizard?