Greetings,

I'm having this problem that's driving me nuts and I'm hoping one of the monks here has dealt with, solved it, and is willing to share.

First, a little background:
I'm on a P4 2.2gHz Windows XP machine (with all the latest patches) with lots of RAM, a very large harddrive using ActivePerl Build 804, trying to code a cross platform package.

My problem is that I have a situation where I need to pass a very long argument string to an external program (a java program actually), which could be well over the 357 charecter limit I have seen mentioned here. When I try to do this, I don't get an error, instead the perl binary crashes on me...

I have tried implementing the code mentioned in http://www.perlmonks.com/index.pl?node_id=151886 and an other node mentioned here (sorry I forgot which one), and both give the same results. A perl crash....

Please help. This has been driving me nuts for the last few days and I don't know what else to do...


In reply to Passing a very long parameter list to an external command in perl by dwhitney

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.