in reply to Re^2: Modules and crossplatform code
in thread Modules and crossplatform code

If you look at perlvar under the section for $^O, there's a link to a section of the perlport documentation that has a detailed listing of the OS strings returned by $^O.

Also, the perlvar documentation for the variable points out that $^O is not too useful in distinguishing exactly which version of Windows the code is running on (XP, Vista, etc.) since it always returns MSWin32. There's a note about using some functions from the Win32 module to get more detailed information about the version of Windows.

Just wanted to toss out that information in case others might find it useful.

Replies are listed 'Best First'.
Re^4: Modules and crossplatform code
by Khariton (Sexton) on Dec 06, 2010 at 20:04 UTC
    thanks.
    For detecting OS I use $Tk::platform (I use Tk and can use this variable).
    This method may be usefull if needn't using Tk...