On Thu, Aug 28, 2003 at 05:49:59PM +0100, Mike Guy wrote: > "Orton, Yves" wrote > > So if it does work for goto but not next, whats the cause of the difference > > I wonder? > > goto has to allow an arbitrary SV as argument, in order to support > > my $sub = sub { ... }; > ... > goto &$sub; > > I guess that cases like > > my $label = 'LABEL'; > ... > goto $label; > > just came out in the wash. No, they do totally different things and internally they're totally different sets of code. If you look at pp_goto inside pp_ctl.c you'll see /* This egregious kludge implements goto &subroutine */ followed by a 200 line if statement. -- Michael G Schwern schwern@pobox.com http://www.pobox.com/~schwern/ It should indeed be said that notwithstanding the fact that I make ambulatory progress through the umbragious inter-hill mortality slot, terror sensations will no be initiated in me, due to para-etical phenomena.