in reply to cat vs. file handle speed?
Results:use Benchmark; timethese (50000, { 'OPENCAT' => sub { open (INFILE, "cat mbox |"); while (<INFILE>){ #do nothing } close INFILE; }, 'OPENPERL' => sub { open (INFILE, "mbox"); while (<INFILE>){ #do nothing } close INFILE; } });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: cat vs. file handle speed?
by tilly (Archbishop) on Mar 30, 2001 at 18:53 UTC |