billy3 has asked for the wisdom of the Perl Monks concerning the following question:
Hi!
I'm new here, although I've been playing with Perl for a number of years.
I'm having trouble redirecting an input file to STDIN for a commandline script. Here's an example of what I type in commandline:
test.pl < myfile.txt
Instead of processing the text file, the script just terminates as if the file was empty or the STDIN handle closed. It doesn't even process a single line in the text file.
I also tried the example at http://perlmonks.org/?node_id=191787 and get the same problem.
Any ideas on how I can get this working? I'm running Windows XP SP2 with ActivePerl 5.8.8 build 820.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirecting STDIN on Windows commandline
by blazar (Canon) on Jul 04, 2007 at 21:13 UTC | |
|
Re: Redirecting STDIN on Windows commandline
by BrowserUk (Patriarch) on Jul 04, 2007 at 18:25 UTC | |
|
Re: Redirecting STDIN on Windows commandline
by jbert (Priest) on Jul 04, 2007 at 17:07 UTC |