You can either connect STDIN to a file or to the user TTY, not both. It's like saying you can wear a bowtie or a necktie, but not both.
The simplest solution is probably to specify the name of the file, and use STDIN for user interaction. The name of the file is in @ARGV.
open( INFILE, "<$ARGV[0]" ) or die "Culd not open $ARGV[0] $!"; .... close INFILE;
--
TTTATCGGTCGTTATATAGATGTTTGCA
In reply to Re: Multiple STDIN sources
by TomDLux
in thread Multiple STDIN sources
by perlfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |