shashank@india.hp.com writes:
s> This is not really a clearcase question. But I need the solution for this
s> Clearcase implementation only. I have a perl script which can be executed
s> from both NT & HP-Unix. Is there any way, I can find through which OS the
s> script is called while running the script & take required action depending
s> on the OS?
In recent versions of Perl you can use $^O. For example,
On solaris ...
$ perl -le 'print $^O'
solaris
$
On nt ...
[c:/] perl -le 'print $^O'
MSWin32
[c:/]
Brandon
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:26:57 EDT