in reply to Re^8: Execute by order
in thread Execute by order

1>file 2>file works but &1 does not
perl -le" warn 1; print 2; " 2>&1 >one

Replies are listed 'Best First'.
Re^10: Execute by order
by BrowserUk (Patriarch) on Aug 14, 2009 at 07:36 UTC

    Hm. Works for me:

    c:\test>perl -lE" say, warn for 1 .. 5" 2>&1 | perl -nE"say qq[Got:'$_ +']" Got:'Warning: something's wrong at -e line 1. ' Got:'Warning: something's wrong at -e line 1. ' Got:'Warning: something's wrong at -e line 1. ' Got:'Warning: something's wrong at -e line 1. ' Got:'Warning: something's wrong at -e line 1. ' Got:'1 ' Got:'2 ' Got:'3 ' Got:'4 ' Got:'5 '

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^10: Execute by order
by Anonymous Monk on Sep 16, 2009 at 08:01 UTC