![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
You're right. it wouldn't work for files greater than memory. I thought it might for a while because of the in-place sort optimisation that came in somewhere in 5.8.x, that means that:
gets converted to sort \@ar; and sorts in place rather then copies the array to the stack and back. But looking at the code, it doesn't work for tied arrays:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In reply to Re^3: Sort command equivalent in perl
by BrowserUk
|
|