I remembered working on a Sun some time ago where a pipe with xargs gave problems with too many arguments - but I might have dreamt it.
If so, then it would be a bug, as that would mean its xargs would not be POSIX compliant. I can't recall ever run into this problem using Solaris (but that doesn't prove anything - my memory isn't perfect). Here's the relevant quote from the POSIX docs:
The generated command line length shall be the sum of the size in byte +s of the utility name and each argument treated as strings, including a null byte terminator for + each of these strings. The xargs utility shall limit the command line length such that when the c +ommand line is invoked, the combined argument and environment lists (see the exec family of fu +nctions in the System Interfaces volume of IEEE Std 1003.1-2001) shall not exceed {ARG_MAX}- +2 048 bytes. Within this constraint, if neither the -n nor the -s option is specified, the + default command line length shall be at least {LINE_MAX}.
Perl --((8:>*

Edited by planetscape - replaced pre with code tags


In reply to Re^7: Myth busted: Shell isn't always faster than Perl by Perl Mouse
in thread Myth busted: Shell isn't always faster than Perl by zentara

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.