in reply to Re^2: Finding OS Version
in thread Finding OS Version and Win2K8

I'm sorry that it didn't work right. I'm looking back at some of my other scripts. If I can find anything, I'll get back to you with it.

update: This worked for me on XP:

#!/usr/bin/perl use strict; use warnings; use Sys::Info; my $info = Sys::Info->new; my $os = $info->os; printf "Operating System is %s\n", $os->long_name;

Replies are listed 'Best First'.
Re^4: Finding OS Version
by Burak (Chaplain) on May 23, 2008 at 08:14 UTC
    Hi, that part of Sys::Info checks for OS version and returns the name if it knows it, returns a generic string otherwise. I'll release a new version soon to support that version of windows...