If you are on Windows, this might be helpful:
http://support.microsoft.com/kb/830473
The max command length is 8191 chars on Win XP or 4191 on Win 2K.
BUT in order to get that max limit, you must have an environment size that allows it.
This might be helpful:
http://msdn.microsoft.com/en-us/library/ms682653(VS.85).aspx

If you are a *NIX platform there are similar limits.

There are reasons to have large command lines when working with various utilities and when using a large number of pipe commands. But this definitely not a Perl limitation. Personally when something like this: >proga ....parms.. | progr B .... | prog c ... gets more than a couple of lines, I split it up and use temp files. Normally these very lengthy things are shell commands. I don't know why your Perl program would have to deal with such a thing.

Update: I've never seen a limit as low as 257 on a modern O/S. All of these things can do more, it sounds like a configuration problem to me.


In reply to Re: Problem with STDIN input by Marshall
in thread Problem with STDIN input by Gyatso

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.