in reply to Re^3: Puzzle: The Ham Cheese Sandwich cut.
in thread Puzzle: The Ham Cheese Sandwich cut.
Update: Ok, not entirely useless: if you want a routine not to return to where you called it from, goto is the way to do it. In other words, use it when you want to do weird control flow (which is what goto is all about). Example:
It's like exec for the subroutine domain.sub one { print "In one\n"; goto &two; print "never print this if you goto\n"; } sub two { print "In two\n"; } one();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Puzzle: The Ham Cheese Sandwich cut.
by robin (Chaplain) on Nov 21, 2005 at 19:39 UTC |