<?xml version="1.0" encoding="windows-1252"?>
<node id="800" title="Why do I sometimes get an &amp;quot;Argument list too long&amp;quot; when I use &amp;lt;&amp;#042;&amp;gt;?" created="1999-10-12 23:42:27" updated="2005-07-27 05:33:08">
<type id="834">
perlfaq nodetype</type>
<author id="519">
faq_monk</author>
<data>
<field name="doctext">

D

&lt;P&gt;
The &lt;CODE&gt;&amp;lt;&amp;gt;&lt;/CODE&gt; operator performs a globbing operation (see above). By default 
&lt;CODE&gt;glob()&lt;/CODE&gt; forks 
&lt;CODE&gt;csh(1)&lt;/CODE&gt; to do the actual glob expansion, but csh can't handle more than 127 items and so gives the error message

&lt;CODE&gt;Argument list too long&lt;/CODE&gt;. People who installed tcsh as csh won't have this problem, but their users
may be surprised by it.

&lt;P&gt;
To get around this, either do the glob yourself with &lt;CODE&gt;Dirhandle&lt;/CODE&gt;s and patterns, or use a module like Glob::KGlob, one that doesn't use the
shell to do globbing.

&lt;P&gt;
</field>
</data>
</node>
