On win32, I have a problem with reading from a pipe on STDIN only (files on the command line work as expected). I have to call the script with perl script.pl
, as below.
Update: I found this and perldoc pl2bat.
Here's the script:
print while <>;
With this command
echo "one two three" | myscript.pl
I get no output, but with this
echo "one two three" | perl myscript.pl
"one two three"
Is this expected behavior? [Oddly enough, using pl2bat
DWIM, but I was hoping to avoid that.]
assoc and ftype give...
c:\> assoc .pl
c:\> ftype Perl
Perl="C:\Perl\bin\perl.exe" "%1" %*
Quantum Mechanics: The dreams stuff is made of