Installed and tested with the Parallel ForkManager version 1.03 the code is still exiting abnormally in the same section of ForkManager.pm:

Use of uninitialized value in block exit at /lib/site_perl/5.8.9/Paral +lel/ForkManager.pm line 599. Use of uninitialized value in block exit at /lib/site_perl/5.8.9/Paral +lel/ForkManager.pm line 599. Unable to create sub named "" at /lib/site_perl/5.8.9/Parallel/ForkMan +ager.pm line 599.
587 sub run_on_wait { 588 my ($s,$code, $period)=@_; 589 590 $s->{on_wait}=$code; 591 $s->{on_wait_period} = $period; 592 } 593 594 sub on_wait { 595 my ($s)=@_; 596 597 if(ref($s->{on_wait}) eq 'CODE') { 598 $s->{on_wait}->(); 599 if (defined $s->{on_wait_period}) { 600 local $SIG{CHLD} = sub { } if ! defined $SIG{CHLD}; 601 select undef, undef, undef, $s->{on_wait_period} 602 }; 603 }; 604 };

In reply to Re^4: Parallel ForkManager error with run_on_wait() (in 10 year old version) by sojourn548
in thread Parallel ForkManager error with run_on_wait() by sojourn548

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.