Jump to content

Archived

This topic is now archived and is closed to further replies.

benjam

PERL version of get_env( )

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Try this:

[code]
my $CONFIG_STAGE = $ENV{'CONFIG_STAGE'};
[/code]

Share this post


Link to post
Share on other sites
Thanks, I'll try that.

And thanks for moving the post to the correct area... my bad.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.