On the machine I'm using right now (Windows 98), the behaviour of your code seems identical using perl v5.6.1 and perl v5.8.0. (I checked the output to STDOUT by redirecting the output to a file using >. This doesn't seem to capture output to STDERR as far as I can tell.) However, I have noticed some that on some other machines (also using Windows 98, but possibly not the same edition - but the same perl), the behavior of output to STDOUT and STDERR seems different (using identical code, of course.) For example, backquotes act differently - on one machine the code $result=`dir` causes the directory listing to be displayed on the screen, but $result isn't set!
I've always been perplexed about this. I am using binary makes of Perl that I downloaded via CPAN. I've wondered if the differences could be due to differences in how the various machines and/or OS editions implement shells; (there certainly are some differences when one goes to Windows XP.) This isn't a complete answer to your question, I know. If anyone has any comments about my remarks or the original poster's, I'd be very interested.
chas

In reply to Re: Perl 5.8: warn sometimes writes to STDOUT? by chas
in thread Perl 5.8: warn sometimes writes to STDOUT? by jdalbec

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.