>>>>> "Clinton" == Clinton A Pierce <[EMAIL PROTECTED]> writes:
Clinton> On Thu, Jul 26, 2001 at 10:47:05AM -0400, Clinton A . Pierce wrote:
>> for(0..20) { push(@r, int rand(50)) }
Clinton> Followup to myself, the result of this is entirely dependant on how
Clinton> the list is created. The problem, it seems, is in the
Clinton> newSViv(a>b?1:-1)
Clinton> statement. It was a poor choice to find relative positions within the
Clinton> list. Heh. Sorry 'bout that. :)
Ahh. I was wondering about that! So you did the equivalent of
\$a > \$b ? 1 : -1
inside the sort function... a value we already had. :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
- 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 (SOLVED? No, f... 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
