in reply to Re: Re: At each change in...
in thread At each change in...

Is having to learn a myriad of Unix command worse than having to learn a myriad of APIs of a myriad of Perl modules? Or do you plan to do everything yourself? I rather reuse what others have done....

Note also that IEEE Std 1003.1 - 2001 (aka POSIX) "Shell and Utilities" require the -m and -u options.

As for the overhead of sort, in the given example, no sort is actually done. The -m option, for merge, merges files which are already presumed to be sorted - but when given one file, this passes things unsorted.

Abigail

Replies are listed 'Best First'.
Re: Re: At each change in...
by stefp (Vicar) on Jun 13, 2002 at 13:33 UTC
    It so easy to do some things in Perl that very often, I don't even think of using external commands or exotic modules so my code is independant of anything but a vanilla Perl installation. I learn Perl in 1989 for that very reason: to forget about sed, cut, sort (...) while getting the benefit to already know since perl was conceptually reaped from them.

    you don't need a sort because you assume your file(s) sorted; what a specious argument!!

    -- stefp -- check out TeXmacs wiki