bcrowell has asked for the wisdom of the Perl Monks concerning the following question:
Well, I have no problem retrieving the filename using @ARGV, but Perl also redirects STDIN to the file as well, which I don't want. I want STDIN to be the keyboard. How do I do this? I tried closing and reopening STDIN, but that didn't work. Can I do something to my #! line to defeat this feature?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: defeating STDIN redirection
by japhy (Canon) on Mar 07, 2002 at 17:48 UTC | |
by bcrowell (Acolyte) on Mar 07, 2002 at 18:16 UTC | |
|
Re: defeating STDIN redirection
by screamingeagle (Curate) on Mar 07, 2002 at 17:53 UTC | |
|
Re: defeating STDIN redirection
by talexb (Chancellor) on Mar 07, 2002 at 17:48 UTC | |
by defyance (Curate) on Mar 07, 2002 at 17:57 UTC |