in reply to eval and goto: no worky?
There is no need to use eval with goto:
sub f1{ print 'f1'} sub f2{ print 'f2' } sub f{ goto &{$_[0]} };; f('f1');; f1 f('f2');; f2 f('f');; ### Warning infinite loop!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: eval and goto: no worky?
by saintmike (Vicar) on Nov 10, 2010 at 02:09 UTC |