I am making a system call with a huge sized argument. Here is the call:
!system ("perl", $perl_file, $comp, $warn_list_arg); or die "Program +exit";
where: $warn_list_arg at times contains about 8000+ strings, each string consisting about 60+ chars. This arg is delimited such that the invoked Perl process can unmarshall these args.

For a small sized $warn_list_arg, the call executes OK. For larger sizes such as 8000+ strings, it fails. Here are some specs:

Exit value: 255 ($! >> 8)
Signal num: 0 ($! & 127)
Core dump: 0 ($! & 128)

Is there a size limit on the buffer containing the args? How might I be able to pass such a big arg?

BTW: i resorted to this method of passing args since passing an array/list to the system call failed to pass the args on to the invoked process. Or is there some way to pass arrays in a system call?

Thnx for any suggestion/help.

Thanks to all u folks for yr replies: sleepingsquirrel nothingmuch davido eclark ccn Creating the process via a filehandle was the trick for me! BBK

Edit by castaway, reinserted original question


In reply to THANKS TO ALL: Passing huge args to system call by bubulik

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.