Perhaps this does what you want, it uses Config which is core. Tested on Windows, Solaris and netbsd:
#!/usr/bin/perl use strict; use warnings; use Config; print "$Config{osname}\n"; print "$Config{archname}\n"; print "$Config{osvers}\n";
Output:
MSWin32 MSWin32-x86-multi-thread 5.1
In reply to Re: Get version of installed OS
by marto
in thread Get version of installed OS
by bimleshsharma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |