in reply to Character Input
Though you may want to read in slightly larger increments than one character at a time, as that's relatively slow.open S, "foo" or die "Can't open foo: $!"; my $buffer; while (read S, $buffer, 1) { print $buffer, "\n"; } close S or die "Can't close foo: $!";
How large is your file? Perhaps reading in 4k bytes at a time might work out for you?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Character Input
by jerji (Novice) on Mar 28, 2000 at 03:04 UTC |