http://www.perlmonks.org?node_id=957068


in reply to How Do I Get Batch Input to Work in DOS?

I'm not familiar with DOS, but I would think you need to actually print the contents of pl_input.txt to STDOUT before piping it into your program. This is how I would do it in bash:

$ cat pl_input.txt | myfile.pl

EDIT: Nevermind, I did some research and it looks like what you were doing should be fine. Maybe post your code/input file so we have some more to go on? What's happening that's unexpected?