tomazos has asked for the wisdom of the Perl Monks concerning the following question:
I feel a bit silly...
#!perl # pipetest.pl use strict; use warnings; while (<STDIN>) { print "$_\n"; }
Now on a Win32 cmd.exe...
C:/> ./pipetest.pl < somefile C:/>
Prompt returns. Nothing happens. There is definately data in somefile. I am clearly missing something very obvious. ?
When I run it without taking stdin from a file:
C:/> ./pipetest.pl fsanlfga fsanlfga
It works fine and echos the lines I type.
Any ideas?
-Andrew.
Back to
Seekers of Perl Wisdom