perl-unicode

RE: UTF-8 support for the ancient shell toys

2001-11-04 03:53:26
I hear that Perl development version 5.7 has merge sort. Does anybody have
details?

-----Original Message-----
From: linux-utf8-bounce(_at_)nl(_dot_)linux(_dot_)org
[mailto:linux-utf8-bounce(_at_)nl(_dot_)linux(_dot_)org]On Behalf Of Philip 
Newton
Sent: Saturday, November 03, 2001 11:08 PM
To: Markus Kuhn
Cc: linux-utf8(_at_)nl(_dot_)linux(_dot_)org; emacs-unicode(_at_)gnu(_dot_)org;
perl-unicode(_at_)perl(_dot_)org
Subject: Re: UTF-8 support for the ancient shell toys


On Sat, 3 Nov 2001 18:16:32 +0000 (GMT), in perl.unicode you wrote:

In practice, Perl has long ago replaced grep, sort, tr, awk, for all but
sentimental reasons.

I'd like to disagree with 'sort'. In some cases, at least, the
system-supplied sort(1) can do disk-based (merge?) sorting, enabling you
to sort files larger than the amount of virtual memory you have
installed. This is a task that's not trivial to do in Perl[1].

Cheers,
Philip

[1] It's undoubtedly not *hard*, if you know the algorithm, but it's not
*trivial* in the way that you can usually replace grep/tr/awk/sed
scripts with a Perl script trivially.
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

<Prev in Thread] Current Thread [Next in Thread>