On Mon, 4 Feb 2002, tomasz konefal wrote:

> the example you gave is what i'm currently implementing, but it just doesn't
> seem right because it looks as though i'm not actually changing run modes,
> but i'm nesting into another method temporarily, and then jumping out.  is
> this a correct interpretation, or am i way off base here?

Perhaps you'd rather "goto"?

  sub foo_runmode {
    my ($self) = @_;
    if (...) {
      goto &bar_runmode;  # switch to bar_runmode
    }
  }

Note that to make that work you have to leave @_ along - no shift()ing or
the runmode you jump to won't have a $self!

-sam


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to