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?
In reply to Re: Character Input
by btrott
in thread Character Input
by coolmichael
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |