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.
In reply to Re: Redirecting STDIN on Windows commandline
by BrowserUk
in thread Redirecting STDIN on Windows commandline
by billy3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |