(response below)

>-----Original Message-----
>From: Hardly Armchair [mailto:[EMAIL PROTECTED] 
>Sent: Monday, January 16, 2006 3:19 PM
>To: Timothy Johnson; beginners@perl.org
>Subject: RE: [Win32] Basic I/O Question

<snip>

>> If you want to use the less-than operator (or a
>> pipe), then you have to
>> explicitly state that you are using perl.exe. 
>> cmd.exe can't derive
>> implicitly the program you are invoking via the
>> extension.
>> 
>> For example:
>> 
>>      c:\> perl.exe while.pl < "..\myfile.txt"
>
>
>Thank you, Timothy.  I tested a simple "type" program
>on a test file located on c: and another drive and it
>behaved exactly as you said.  I couldn't find any
>documentation mentioning that adding "perl.exe" before
>the program and file name is a necessary condition to
>get pipes and command-line files to work with <STDIN>.
> This seems like it would be an important thing to
>know for anyone as green as myself.
>
>Adam

I don't think the documentation exists, or at least I haven't been able
to find it.  Windows people don't tend to use pipes and redirection as
much as their xNIX counterparts, in part because virtually all
command-line tools for the Win32 platform that take input from a file
allow you to specify the file as a parameter.

The best documentation I've found is here:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs
/en-us/redirection.mspx  but it doesn't say anything about invoking
applications by association.





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to