in reply to perl: Argument list too long
Others have probably correctly identified your problem.
The solution is Getopt::Long + Getopt::ArgvFile, which makes it possible to specify a command line arguments file to be used. This is a good idea in general.
/J
In Section
Seekers of Perl Wisdom