ronh has asked for the wisdom of the Perl Monks concerning the following question:
$| = 1; undef $/; # or not if slurping to array. my $file; my @file; my $START_TIME = time; my $filename = 'C:\Documents and Settings\ron\My Documents\FGwing\new +_rptgen\DATA\run001\ENG_mod.262-08_41_43'; # substitute your own big +file open (FILE, "$filename") or die "can't open $filename"; $file = <FILE>; # or @file= <FILE>; sub END{ my $END_TIME = time; my $RUN_TIME = $END_TIME - $START_TIME; print STDOUT "\n\n Phew, that took $RUN_TIME seconds.\n\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 5.8 slowed relaitve to 5.6.1 (by PerlIO?)
by perrin (Chancellor) on Jun 10, 2003 at 17:26 UTC | |
by ronh (Acolyte) on Jun 10, 2003 at 17:45 UTC | |
by perrin (Chancellor) on Jun 10, 2003 at 17:57 UTC | |
by Anonymous Monk on Jun 12, 2003 at 13:19 UTC |