RE: PERL5LIB env variable import possibly broken for large contents on Win32? ( Was: Re: Your CPAN smoker is misconfigured? )

"Jan Dubois" <[email protected]> Wed, 30 Mar 2011 12:42:47 -0700
Newsgroups gmane.comp.lang.perl.active-perl
Organization ActiveState Software Inc
Message-ID <[email protected]>
On Wed, 30 Mar 2011, Brian Raven wrote:
>On Wed, 30 Mar 2011, Christian Walde wrote:
>> At first i thought that was the case too. But the fact that the perl
>> executable knows that value is in %ENV makes me think it's something
>> else going on, as i'd expect that to be empty as well then.
>
> Maybe so, but spawning a sub process with large environment variables
> does seem to cause problems. For example, running the following ...

Yes, that is a limitation of CreateProcessA():

| CreateProcessA fails if the total size of the environment block for
| the process exceeds 32,767 characters.

I've updated Christian's bug report with this information.

Cheers,
-Jan


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs