The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Devel::Platform::Info::Win32 - Retrieve Windows platform metadata

SYNOPSIS

  use Devel::Platform::Info::Win32;
  my $info = Devel::Platform::Info::Win32->new();
  my $data = $info->get_info();

DESCRIPTION

This module is a driver to determine platform metadata regarding the Win32 operating system. It should be called indirectly via it's parent Devel::Platform::Info

INTERFACE

The Constructor

  • new

    Simply constructs the object.

Methods

  • get_info

    Returns a hash reference to the Win32 platform metadata.

    Returns the following keys:

      source
      archname
      osname
      osvers
      oslabel
      is32bit
      is64bit
      osflag
      wow64

    On a 64 bit Windows if you are running 32 bit perl the archname is likely to indicate x86. The wow64 variable will tell you if you are in fact running on x64 Windows.

BUGS, PATCHES & FIXES

The module cannot accurately tell the difference between the Windows Server 2003 and Windows Server 2003 R2.

The wow64 variable indicates whether or not you are running a 32 bit perl on a 64 bit windows. It uses the environment variable PROCESSOR_ARCHITEW6432 rather than the IsWow64Process call because it's simpler.

If you spot a bug or are experiencing difficulties, that is not explained within the POD documentation, please send bug reports and patches to the RT Queue (see below).

RT Queue: http://rt.cpan.org/Public/Dist/Display.html?Name=Devel-Platform-Info

AUTHORS

  Barbie (BARBIE) <barbie@cpan.org>
  Brian McCauley (NOBULL) <nobull67@gmail.com>
  Colin Newell (NEWELL) <newellc@cpan.org>
  Jon 'JJ' Allen (JONALLEN) <jj@jonallen.info>

COPYRIGHT & LICENSE

  Copyright (C) 2010-2019 Birmingham Perl Mongers

  This distribution is free software; you can redistribute it and/or
  modify it under the Artistic License 2.0.