in reply to Sorting, recursion, and tail-call optimizations
The "goto-&NAME" form is quite different from the other forms of "goto". In fact, it isn't a goto in the normal sense at all, and doesn't have the stigma associated with other gotos. Instead, it exits the current subroutine.Now from "perldoc -f sort":
You also cannot exit out of the sort block or subroutine using any of the loop control operators described in perlsyn or with "goto".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sorting, recursion, and tail-call optimizations
by Limbic~Region (Chancellor) on Jan 06, 2006 at 18:48 UTC | |
by Roy Johnson (Monsignor) on Jan 06, 2006 at 19:37 UTC | |
by Limbic~Region (Chancellor) on Jan 06, 2006 at 19:48 UTC | |
by kwaping (Priest) on Jan 06, 2006 at 19:02 UTC |