Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: finiding the os type

by RollyGuy (Chaplain)
on Aug 05, 2002 at 14:36 UTC ( [id://187678]=note: print w/replies, xml ) Need Help??


in reply to finiding the os type

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.

Replies are listed 'Best First'.
Re: Re: finiding the os type
by DS (Acolyte) on Aug 05, 2002 at 14:58 UTC
    thanks much ,, that help a lot :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://187678]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-28 16:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found