Sandeep Deshpande <> wrote:
> Dear All,
> If I wanted to understand the OS then I used to use simply 'print $^O'
> (which tell MSWin32, it was enough to understand that the OS is
> Windows). It used to work okay, but now one of my scripts need to
> understand the windows OS in detail. (i.e. if the OS is Windows 2000
> or Windows XP or Windows 95 etc). Currently I use system command
> 'ver'. But is there any other way where I can get the details of
> Windows OS?     
> 
> I would also welcome if somebody can tell me, where this information
> is stored in Windows Registry then I can write a script to go the
> said location and get the information or If there is any URL which
> explains Registry structure in detail?   

See the documentation for $^O (in 'perldoc perlvar') for your answer.

HTH

-- 
Brian Raven



=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the 
intended addressee(s). Unauthorised reproduction, disclosure, modification, 
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message do not 
necessarily reflect those of Atos Euronext Market Solutions.

L'information contenue dans cet e-mail est confidentielle et uniquement 
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. 
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail 
vous parvient par erreur, nous vous prions de bien vouloir prevenir 
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre 
systeme. Le contenu de ce message electronique ne represente pas necessairement 
la position ou le point de vue d'Atos Euronext Market Solutions.


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to