You're trying to debug b.pl and some module called by it, but you didn't give any information whatsoever about either (other than b.pl uses some module that's not on CPAN).

Well, let's see if the information you gave gives a hint. The value returned by system isn't negative, so it wasn't a problem launching the child.

$ perl -E'say 2304 & 255' 0

It didn't die from a signal, so someone called exit or die.

$ perl -E'say 2304>>8' 9

It exited from exit code 9. It's very unlikely that someone did exit(9), so it's likely from die or the internal equivalent. But if Perl died, it would have emitted an error message to STDERR. What error did you get?

As for what "9" means, Perl uses $! || $? || 255 as the value for the exit code when dieing. It's not always meaningful, but there's a chance it is.

$ perl -E'say $!=(2304>>8)' Bad file descriptor

If you get the same result on your system, it's not meaningful. $! often ends up with that value when there are no errors.


In reply to Re: System Call Error by ikegami
in thread System Call Error by gdluce

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.