benjam Posted September 5, 2006 Share Posted September 5, 2006 I have a line in my httpd.conf file like the following:[code] Setenv CONFIG_STAGE DEVL[/code]and in my config.php file I have a line like the following:[code] $CONFIG_STAGE = get_env('CONFIG_STAGE');[/code]How might I do the same thing in PERL?And I know this is a PHP forum, but I figured there has to be a few people in here who know both. Quote Link to comment https://forums.phpfreaks.com/topic/19822-perl-version-of-get_env/ Share on other sites More sharing options...
effigy Posted September 5, 2006 Share Posted September 5, 2006 Try this:[code]my $CONFIG_STAGE = $ENV{'CONFIG_STAGE'};[/code] Quote Link to comment https://forums.phpfreaks.com/topic/19822-perl-version-of-get_env/#findComment-86714 Share on other sites More sharing options...
benjam Posted September 5, 2006 Author Share Posted September 5, 2006 Thanks, I'll try that.And thanks for moving the post to the correct area... my bad. Quote Link to comment https://forums.phpfreaks.com/topic/19822-perl-version-of-get_env/#findComment-86720 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.