in reply to Re^2: cmd.exe piping stress
in thread cmd.exe piping stress

C:/> perl unit2summary.pl < dmp4.piped

Can I take it from the prompt shown in your command line that you are using some other shell than cmd.exe?

If so, try your commands with cmd.exe. I can't see any difference in the behaviour here:

C:\test>perl -pe1 junk.dat | perl unit2summary.pl PASSED: mc creation FAILED: mc attr TESTS: 2 PASSED: 1 (50%) FAILED: 1 (50%) C:\test>perl unit2summary.pl <junk.dat PASSED: mc creation FAILED: mc attr TESTS: 2 PASSED: 1 (50%) FAILED: 1 (50%)

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^4: cmd.exe piping stress
by tomazos (Deacon) on Mar 21, 2006 at 09:29 UTC
    I use both cygwin and cmd.exe.

    In both situations I get the same results.

    I notice now that under cmd.exe it is finding the cygwin perl first in the path. Maybe it is the cygwin perl causing trouble.

    I'm reinstalling ActiveState and will put that first in my path, and see what that does.

    -Andrew.


    Andrew Tomazos  |  andrew@tomazos.com  |  www.tomazos.com