On Mon, Jul 30, 2001 at 05:48:10PM -0400, Ronald J Kimball
<[EMAIL PROTECTED]> wrote:
> > sub sort_lists {
> > for (@_) {
> > sort @$_;
> > }
> > }
>
> That's actually in void context.
not in all versions of perl ;) anyway, try it with "if", which works in
all versions:
sort @x unless $no_sort;
changes behaviour depending on wether it's the last statement in a block or
not.
--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED] |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|
- Re: Sorting in-place (SOLVED? No, further... Bernie Cosell
- Re: Sorting in-place (SOLVED? No, fur... Bart Lateur
- Re: Sorting in-place (SOLVED? No... Clinton A . Pierce
- Re: Sorting in-place (SOLVED? No... Bernie Cosell
- Re: Sorting in-place (SOLVED?... Abigail
- Re: Sorting in-place (SOLVED?... Bernie Cosell
- Re: Sorting in-place (SOLVED?... Abigail
- Re: Sorting in-place Michael G Schwern
- Re: Sorting in-place pcg
- Re: Sorting in-place Ronald J Kimball
- Re: Sorting in-place pcg
- Re: Sorting in-place Ronald J Kimball
- Re: Sorting in-place Clinton A . Pierce
- Re: Sorting in-place Bart Lateur
- Re: Sorting in-place pcg
- Re: Sorting in-place Abigail
- Re: Sorting in-place Michael G Schwern
- Re: Sorting in-place Ilmari Karonen
- Re: Sorting in-place pcg
- Re: Sorting in-place Ilmari Karonen
