in reply to Get version of installed OS
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Get version of installed OS
by bimleshsharma (Beadle) on Nov 22, 2012 at 11:31 UTC | |
by marto (Cardinal) on Nov 22, 2012 at 11:36 UTC |