On Thu, Jul 26, 2001 at 10:47:05AM -0400, Clinton A . Pierce wrote:
> So now when you have a prototyped sortsub:
>
> sub foo ($$) {
> }
>
> The third argument passed is the relative position of the two
> comparison values either 1 or -1. So here's the new sort function:
>
> sub foo ($$) {
> if ($_[0] < $_[1] and $_[2] > 1) {
> ($_[0],$_[1])=($_[1],$_[0]);
> }
> }
You pass a third argument to a function with a prototype of ($$)? How odd!
:)
Ronald
- Sorting in-place Clinton A . Pierce
- Re: Sorting in-place Craig S . Cottingham
- Re: Sorting in-place Abigail
- Re: Sorting in-place Craig S . Cottingham
- Re: Sorting in-place Randal L. Schwartz
- Re: Sorting in-place (SOLVED? No, further m... Clinton A . Pierce
- Re: Sorting in-place? (Whoops!) Clinton A . Pierce
- Re: Sorting in-place? (Whoops!) Randal L. Schwartz
- Re: Sorting in-place (SOLVED? No, furth... Ronald J Kimball
- Re: Sorting in-place (SOLVED? No, f... Clinton A . Pierce
- Re: Sorting in-place (SOLVED? No, furth... Abigail
- Re: Sorting in-place, still a wish *... Clinton A . Pierce
- Re: Sorting in-place (SOLVED? No, f... Bernie Cosell
- Re: Sorting in-place (SOLVED? ... Bart Lateur
- Re: Sorting in-place (SOLVE... Clinton A . Pierce
- Re: Sorting in-place (SOLVE... Bernie Cosell
- Re: Sorting in-place (S... Abigail
- Re: Sorting in-place (S... Bernie Cosell
- Re: Sorting in-place (S... Abigail
