in reply to Re: Get version of installed OS
in thread Get version of installed OS

Might System::Info help?

C:\> cpan System::Info C:\> perl -MSystem::Info -wE"say System::Info->new->os" MSWin32 - Win7 Professional (64-bit) SP1

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^2: Get version of installed OS
by borodache (Novice) on Feb 27, 2018 at 11:29 UTC
    I found a solution, I will use:
    my ($name, $major, $minor, $build, $id) = Win32::GetOSVersion();
    and check the values are greater than or equal to id - 2, $major - 6, $minor - 1. I guess higher version of Windows got the 262 value