Convenient to say that we are not talking about something as an excuse for ignoring my point. I have stated a reasonable criteria for error checking.

As far as I can tell, I didn't ignore your points:

You are of course always welcome to clarify or explain if I missed a point or misunderstood something.

On the other hand, I don't see how accusations of trolling are keeping the discussion on point. In all your replies I have not yet seen a response to my central point: You can't be certain that on any of the systems (including the OP's) where this code might be run in the future, fork will never return undef.

"oh you didn't check e.g. close $fh for an error code in your example program"

People correcting each other like that happens all the time here, and that on its own is not "trolling". What happens less frequently is that people take offense at having errors/flaws/oversights/etc. pointed out to them.

What you people have done is made it impossible to help OPs without feeding the trolls.

What "we people" are doing is maintaining an environment where quality control of each other's posts is a completely normal thing. Sure, sometimes it stings a little to have a mistake pointed out to me. But there are lots of ways to handle the situation: Accept corrections graciously, try to give a reasonable argument against the correction, or find a middle ground like adding a mention of a caveat, or sometimes even just letting the reply stand on its own as an addendum.

Even after re-reading mr_mischief's initial reply, I can detect no ill will in its writing, and certainly nothing that would warrant an accusation insult of "you are a poseur who intends to disrupt and disinform the audience".

On the other hand, almost every one of your posts in this thread has contained insults, whether veiled or direct. So don't be surprised about a negative response or be disappointed if I stop feed^H^H^H^Hresponding :-P


In reply to Re^10: Doing every X seconds by haukex
in thread Doing every X seconds by dideod.yang

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.