One way of doing it would be:
use IO::File; my $handle = $FILE ? do { IO::File->new($FILE) or fatal_error(".."); } : *STDIN; # later you can use <$handle>
In reply to Re: How to select a file handle depending on user options
by morgon
in thread How to select a file handle depending on user options
by gg48gg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |