programming-examples/perl/Win32/OS version.pl

6 lines
114 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
use Win32;
@os = Win32::GetOSVersion();
print "Version $os[1]\.$os[2] Build $os[3]\n";