P is for Practical | |
PerlMonks |
Re: How to determining if I am on .NET versus Windows 2003by Necos (Friar) |
on Apr 05, 2003 at 10:31 UTC ( [id://248276]=note: print w/replies, xml ) | Need Help?? |
Hmmm... I recall there being a function in the Win32::AdminMisc module that would return all of the information about an OS, including the build number. Unfortunately, I'm pretty sure the module is no longer under development. However, I do believe the source is available from Dave Roth's website. You can always just recompile the source to match your perl distribution and use that (if I recall, it's one of those XS-based modules). I'm not sure if ActiveState has included a GetOSBuild-type function in the Win32 module (I still use 522 on my Windows machines) for the newer versions of their Perl. Also, a word of caution. The Win32::AdminMisc module was built before WinXP. So, some of the tricks Dave used to build the module may be broken in the newer include files (in MS VC++). However, it should be possible to backtrack and update the code dependencies if that's the case. Hope that helps some, Theodore Charles III Network Administrator Los Angeles Senior High email->secon_kun@hotmail.com perl -e "map{print++$_}split//,Mdbnr;"
In Section
Seekers of Perl Wisdom
|
|