You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by cyg_win_user <sa...@rediffmail.com> on 2006/03/27 12:09:41 UTC

read environent variable

i m trying to read environment variable in perl using

        $OSTY = $ENV{OSTYPE};
this will return os type as "linux" or "solaris". but when i try for cygwin
it returns empty string. is the some other syntax of way of finding value of
env variable in cygwin
--
View this message in context: http://www.nabble.com/read-environent-variable-t1348295.html#a3606968
Sent from the mod_perl - General forum at Nabble.com.


Re: read environent variable

Posted by Tom Schindl <to...@gmx.at>.
Hi,

this is a mod_perl forum please ask perl questions on perl-monks or any
other perl-support forum and if it is a perlbug file a bug using perlbug
to p5p.

Tom

cyg_win_user wrote:
> i m trying to read environment variable in perl using
> 
>         $OSTY = $ENV{OSTYPE};
> this will return os type as "linux" or "solaris". but when i try for cygwin
> it returns empty string. is the some other syntax of way of finding value of
> env variable in cygwin
> --
> View this message in context: http://www.nabble.com/read-environent-variable-t1348295.html#a3606968
> Sent from the mod_perl - General forum at Nabble.com.
> 
>