I was thinking of something like:
... later ...$file_size_sort = new Sort::Schwartzian left => '-s $a', op=>'<=>', right =>'-s $b';
or@sorted = $file_size_sort->(@files);
etc.$sort_by_score = new Sort::Schwartzian left => '$b->score', op=>'<=>', right =>'$a->score';
If such a thing doesn't exist I'm suggesting someone write one. Volunteers?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Schwartzian Transform as a module?
by merlyn (Sage) on Sep 30, 2002 at 21:32 UTC | |
|
Re: Schwartzian Transform as a module?
by chromatic (Archbishop) on Sep 30, 2002 at 21:02 UTC | |
|
Re: Schwartzian Transform as a module?
by sauoq (Abbot) on Sep 30, 2002 at 20:55 UTC | |
|
Re: Schwartzian Transform as a module?
by Sweeper (Pilgrim) on Oct 01, 2002 at 05:38 UTC | |
by I0 (Priest) on Oct 02, 2002 at 06:18 UTC | |
|
Re: Schwartzian Transform as a module?
by Silicon Cactus (Scribe) on Oct 01, 2002 at 14:41 UTC |