The answer to my own question in the OP.

There is a difference, because the following should be performed to get the 
behavior of: dir | perl -pne ""

perl -e "print `cmd /C dir`;"

the cmd /C part is required to get equivalent behavior.

Mystery solved!

"Michael Goldshteyn" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> That is, why does the output differ between:
>
> perl -e "print join(\"\n\",@{[`dir`]});"
>
> and
>
> dir | perl -pne ""
>
>
>
>
>
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
> 




-- 
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