[thelist] win32 perl, maxlength for @argv?

Dean Mah dmah at shaw.ca
Thu May 23 10:05:00 CDT 2002


On Thu, May 23, 2002 at 09:44:55AM -0500, Sam wrote:

> does anyone know if there's a maximum number of arguments you can
> pass to a script?

I'd think that this is a limitation of the shell rather than Perl.


> not sure if this is a limitation of perl2exe, perl itself, or
> something win2k-ish.

Try a simpler script, something like:

   print join("\n", @ARGV);

and see how many arguments it will take until it breaks.  Try running
it as a plain interpreted file and an executable to see if it makes
any difference.

HTH,
Dean



More information about the thelist mailing list