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. 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] 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. 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
Archived
This topic is now archived and is closed to further replies.