Devel::Platform::Info
James E Keenan
jkeen at verizon.net
Wed Jun 1 01:15:43 UTC 2011
On 5/31/11 1:12 PM, Jonathan "Duke" Leto wrote:
> Howdy,
>
> The CPAN module Devel::Platform::Info looks interesting:
My admittedly quick try-out of this module suggests that it would not be
particularly useful for Parrot at the present time.
The README
(http://cpansearch.perl.org/src/BARBIE/Devel-Platform-Info-0.09/README)
indicates that use of this module's public methods will return a hash
with at least the following keys:
#####
source
archname
osname
osvers
oslabel
is32bit
is64bit
osflag
#####
Of these, only 3 are present in %PConfig -- and those have different
values from what Devel::Platform::Info returns. For example, comparing
the two on my Linux VM:
# From Devel::Platform::Info
'archname' => 'i686',
'osname' => 'GNU/Linux',
'osvers' => '5.0.3',
# From lib/Parrot/Config/Generated.pm
'archname' => 'i686-linux',
'osname' => 'linux',
'osvers' => '2.6.18.8-linode22',
We'd probably have to do a lot of work to map what the module returns to
what %PConfig needs.
I do, however, think that this distribution could be a useful starting
point for new CPAN distributions that need to use OS-specific data.
Thank you very much.
kid51
More information about the parrot-dev
mailing list