in reply to how to increase input buffer size in perl?

  1. Use strict warnings and diagnostics or die
  2. you're using open when you should be using open2
  3. "input line is too long" is a shell error (cmd/sh/bash...) not perl (probably because youre not using open2)
  • Comment on Re: how to increase input buffer size in perl?

Replies are listed 'Best First'.
Re^2: how to increase input buffer size in perl?
by shooter714 (Initiate) on Mar 31, 2010 at 18:17 UTC
    Oh, that is a typo. I didn't copy and paste from my script but I AM using open2. Still have any ideas anyone?
      Could you turn that into runnable code, please? It's not clear where the message comes from. I doubt it's from Perl. Finding the cause (Perl or otherwise) is the first step in finding a solution.
        Perl gets "Broken Pipe", the other error is from shell, or idl program
      Yeah, the error has to do with how many arguments idl can accept. It caps out at 32766 character length. Instead I had to just write the array to a file and read that file inside the IDL script. Apparently you can't break up the array into separate lines either. IDL will throw an error.