As for opening STDIN yourself, you could make use of the magic of the open command. If you open a file called "-", Perl will read from standard input. For instance:
Getoptions (...); $input = "-" unless defined $input; open my $fh => $input or die $!; while (<$fh>) { ... }
Abigail
In reply to Re: problem of filehandling
by Abigail-II
in thread problem of filehandling
by jey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |