in reply to Redirecting STDIN on Windows commandline

Use perl test.pl < file.txt instead.

Or consider using pl2bat.bat to convert the perl script to a batch script. See the documentation for pl2bat.bat that is part of the AS docset for the full explanation and alternatives.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."