The only one that comes with a bash is the Cygwin environment. Fortunately, the Windows CLI is mostly sane for redirection purposes, though. Unfortunately, I found that older versions of ActiveState might break on your code. Anything recent should be okay, though.
To keep the response a bit shorter for those looking for just the gist, I'll put all but my newest copy of each in a readmore. I don't have Vanilla, but it's my understanding Vanilla is just a proper subset of Strawberry. I'd mostly expect similar results from those two.
Strawberry 5.8.8:
No redirect:
012
345
678
ABC
IJK
XYZ
Redirect errors to devnull:
ABC
IJK
XYZ
Redirect merging stderr and stdout:
ABC
012
IJK
345
XYZ
678
Strawberry Perl 5.10.0.1:
No redirect:
012
345
678
ABC
IJK
XYZ
Redirect errors to devnull:
ABC
IJK
XYZ
Redirect merging stderr and stdout:
ABC
012
IJK
345
XYZ
678
ActiveState 5.8.0 (build 804):
No redirect:
'C:\Documents' is not recognized as an internal or external command,
operable program or batch file.
Redirect errors to devnull:
Redirect merging stderr and stdout:
'C:\Documents' is not recognized as an internal or external command,
operable program or batch file.
ActiveState 5.8.8 (build 822):
No redirect:
012
345
678
ABC
IJK
XYZ
Redirect errors to devnull:
ABC
IJK
XYZ
Redirect merging stderr and stdout:
ABC
012
IJK
345
XYZ
678
ActiveState 5.10.0 (build 1002):
No redirect:
012
345
678
ABC
IJK
XYZ
Redirect errors to devnull:
ABC
IJK
XYZ
Redirect merging stderr and stdout:
ABC
012
IJK
345
XYZ
678
Cygwin Perl 5.8.6:
No redirect:
012
345
678
ABC
IJK
XYZ
Redirect errors to devnull:
ABC
IJK
XYZ
Redirect merging stderr and stdout:
ABC
012
IJK
345
XYZ
678
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.