in reply to Re^4: Sorting, recursion, and tail-call optimizations
in thread Sorting, recursion, and tail-call optimizations
If the subroutine's prototype is "($$)", the elements to be compared are passed by reference in @_, as for a normal subrou- tine. This is slower than unprototyped subroutines, where the elements to be compared are passed into the subroutine as the package global variables $a and $b (see example below).Maybe a prototype is being applied to the "borked" sub call?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Sorting, recursion, and tail-call optimizations
by Limbic~Region (Chancellor) on Jan 06, 2006 at 18:34 UTC | |
by kwaping (Priest) on Jan 06, 2006 at 18:36 UTC |