Hi all,
So I have a two scripts that does a lot of computation for separate things: one in perl and one in IDL. Bear with me if you all don't IDL; I think it's a perl issue. Well, I need them to interface with each other so that I can pass two very large perl arrays into IDL which can process them and spit out an output back to me in perl. I do this using IPC:Open2 and the excerpt of my code is below:
use IPC::Open2 $progName = "idl"; open(READIDL, WRITEIDL, $progName) print WRITEIDL <<"ENDIDL" arr1 ='@array1' arr2 ='@arrat2' program, arr1, arr2, data print, data ENDIDL $data = <READIDL> chomp($data)

Now, program is not an IDL batch file. It is a procedure. So I must pass these arrays into it and data is returned as long as i do a print, data command at the IDL prompt before ENDIDL, and then I use the READIDL filehandle to retrieve it.

The problem once I compile and run my perl script is:
% Input line is too long for input buffer of 32766 characters. Broken pipe
array1 and array2 are large string arrays and take up a lot of memory. I was wondering if there is some way I can increase the buffer size so that perl can pass them into IDL without breaking the pipe. I'm using perl version 5.8.8. Thanks for the help.


In reply to how to increase input buffer size in perl? by shooter714

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.