[H-GEN] perl question about sort()
Bradley Rosser
b_rosser at yahoo.com
Thu Feb 27 21:16:08 EST 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
I think once I tried to do a couple of sorts in a pipeline; something like:
@results = sort { ... } map { ... } sort { ... } @data
and either got a hard error (dumped core or something?) or just bad
results.
I know the man page for 'sort' says that sort functions can't be
recursive, but I don't think I ever found anything saying that you
couldn't have multiple sorts in serial sequence like this. Did I miss
something in the documentation?
This was with Perl 5 at least 3 years ago; I'm afraid I've forgotten
the minor version number.
Just curious, in case there's a Perl expert who can tell me "yes, it
was in the documentation", etc.
Brad
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list