in reply to speeding up script that uses filehandles
use strict; open my $hndl, '<'."bigfile.txt" or die "Open of bigfile failed $!"; while (<$hndl>) { print sprintf("% 7s",$.) . " $_ \n"; } close $hndl;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: speeding up script that uses filehandles
by revdiablo (Prior) on Dec 02, 2004 at 19:14 UTC |