Welcome to the Monastery | |
PerlMonks |
Re: finiding the os typeby RollyGuy (Chaplain) |
on Aug 05, 2002 at 14:36 UTC ( [id://187678]=note: print w/replies, xml ) | Need Help?? |
It looks like you are trying to use your environment variables (OSTYPE, TERM) directly. In order to get to the environment variables that you want, you need to use the %ENV hash. This hash contains all of your environment variables. Just supply the environment variable name as the key to the hash to get the value. So, your first line would look like: if (( $ENV{OSTYPE} eq "cygwin" ) or ( $ENV{TERM} eq "cygwin" )) Enjoy.
In Section
Seekers of Perl Wisdom
|
|