edit first line of long file
Larry Wall
lwall at jpl-devvax.JPL.NASA.GOV
Thu Oct 25 04:40:21 AEST 1990
In article <600 at inews.intel.com> bhoughto at cmdnfs.intel.com (Blair P. Houghton) writes:
: (And you really should try perl. I've done things like
: this in what I thought was super-tight C code that Larry
: Wall then did in three lines of perl; the C took 7 seconds
: in one case and the perl took 3. It might even out-cat cat.)
Probably not, but it depends on how smart your stdio is, and how dumb
your cat is. And of course, it depends on how you write your cat
equivalent--the recent addition of direct read and write system calls
to Perl could make it a close runner-up in the catting category, but
then Sun's cat plays tricks with mmap to do even better, I believe.
Of course, you could call syscall(&SYS_mmap, ...) from Perl...
Erk.
Larry
More information about the Comp.unix.questions
mailing list