in reply to Re: Where does %ENV come from?
in thread Where does %ENV come from?

Thanks, but this brings up a lot more questions: How can I check my old perl for static extensions? How do you compile static extensions into perl? In general how could you compile environment variables into perl. ps. It's not a wrapper

Replies are listed 'Best First'.
Re: Re: Re: Where does %ENV come from?
by Elian (Parson) on Jul 31, 2003 at 01:40 UTC
    To see what has been built in statically, take a look at Config's static_ext setting. This command line'll do that:
    perl -MConfig -e 'print $Config{static_ext}'
    It'll be empty, or perhaps have a dl* entry of some sort in it. If there's anything else, well, you have static extensions built in.

    You don't compile environment variables into perl, rather you compile in modules that, at initialization time, set keys in %ENV. If you built in Foo, say, the Foo boot code, which is executed when the module is initialized (which for statically built modules is when perl is started), can put things in %ENV.