> -----Original Message-----
> From: LoBue, Mark [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 9:26 AM
> To: '[EMAIL PROTECTED]'
> Subject: STDIN and STDOUT on Windows
> 
> 
> Hello,
> 
> I normally use perl on a unix platform, but I needed to run a 
> quick utility
> on a Windows PC.  Normal stdin and stdout doesn't seem to 
> work, take this
> simple program:
> 
> #
> use warnings;
> use strict;
> 
> while (<>) {
>         print;
> }
> 
> On Windows, if I run:
>       type test.txt | test.pl
> I get:
>       The process tried to write to a nonexistent pipe.
> or
>       test.pl < test.txt
> I get nothing at all.  Any tricks to using stdin and stdout 
> on Windows or do
> I have to explicitly open files on that platform?
> 
Ok, I just found the trick, the registration of the .pl doesn't handle this
case, I have to run:
        type test.txt | perl test.pl
-Mark


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to