kartlee05 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Folks,
I try to set an ENV in BEGIN block and load a module. The dll loaded by the module does't see the env. If I run system("set"), just after the env is set, I do see the env in the list. Is there a bug in perl win32 in handling environment through cached block that affect the module from seeing it?
-Karthik#!/usr/bin/env perl BEGIN { $ENV{TEST} = "CHECK"; require module; # use module; doesn't work too. } print module::check_env(), "\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Win32 Perl fail to see the set ENV in loaded module
by Lotus1 (Vicar) on Apr 25, 2014 at 17:21 UTC | |
by kartlee05 (Novice) on Apr 25, 2014 at 18:15 UTC | |
Re: Win32 Perl fail to see the set ENV in loaded module
by mr_mischief (Monsignor) on Apr 25, 2014 at 17:28 UTC | |
by kartlee05 (Novice) on Apr 25, 2014 at 18:15 UTC | |
by mr_mischief (Monsignor) on Apr 25, 2014 at 19:52 UTC | |
by kartlee05 (Novice) on Apr 27, 2014 at 23:08 UTC | |
by bulk88 (Priest) on Apr 28, 2014 at 03:07 UTC |
Back to
Seekers of Perl Wisdom