The code that tests for defined is in the section on CAVEAT/limitations

No, every single fork example in perlipc shows the defined check too, and of course it's documented in fork itself.

perlipc is a more advanced set of functionality ... I will certainly consider the possibility of undef for more complex multiforking situations, but that hardly justifies raising it for this case

It's much simpler than that: the system may not support fork, may be out of resources, etc. Are you certain that on the OP's system, or any system that their code might be run on in the future, fork will never ever return undef under any circumstances?

inhibit learning as well as disrupting the purpose of SOPW

You seem to be advocating "don't check the operation for errors" - do you really think that's a good idea?

Frankly these "contributions" are a sign of ego problems 'I know something too -- look at me!'

That could be said about many replies to many questions here - yours, mine, and just about everyone else's. Sorry, but that's a silly non-insult.


In reply to Re^6: 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.