I think the error must be coming from the shell invoking perl, not perl itself. The error would not be due to setting environment variables, but what is passed to $PERL_BIN/perl.
To confirm ...
Thanks (rest of the posters) for the clue that environment is also part of the space calculation, which I had outright dismissed in my reply.
In reply to Re: perl: Argument list too long
by parv
in thread perl: Argument list too long
by sjhalani
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |