I just remembered that the kernel argument list limit includes 
environment variables.  

---
$ perl -e 'warn "going to run system"; $ENV{FOO}="bah"x1000000; 
system("perl", "-e", "") and die "oops:  $!\n";'

going to run system at -e line 1.
oops:  Argument list too long
---

Could it maybe be this or something like it?

  local $ENV{PERL5LIB} = join $c->{path_sep}, $self->_added_to_INC;

(from run_perl_command() in Base.pm)

I haven't quite found a way to replicate this in the test suite though.

--Eric
-- 
"It works better if you plug it in!"
--Sattinger's Law
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to