in reply to Multiple STDIN sources

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

Replies are listed 'Best First'.
Re: Multiple STDIN sources
by Abigail-II (Bishop) on Mar 10, 2004 at 00:41 UTC
    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.
    But you can wear a bowtie after you've taken off the necktie. See my other post.

    Abigail