VERSIONThis document describes version 0.11 of Perl::osnames (from Perl distribution Perl-osnames), released on 2014-12-19.
DESCRIPTIONThis package contains $data which lists possible values of $^O along with description for each. It also provides some helper functions.
Unix-like operating systems. This currently excludes beos/haiku.
BSD-derived Unix operating systems.
SysV-derived Unix operating systems.
For POSIX-compliant OSes, including fully-, mostly-, and largely-compliant ones (source: <http://en.wikipedia.org/wiki/POSIX>).
From what I can gather, dec_osf is not POSIX compliant, although there is a posix package for it.
VARIABLESNone are exported by default, but they are exportable.
$dataAn arrayref of records (arrayrefs), each structured as:
[$name, \@tags, $description]
FUNCTIONSNone are exported by default, but they are exportable.
is_posix([ $os ]) => boolCheck whether $os (defaults to $^O if not specified) is POSIX (checked by the existence of "posix" tag on the OS's record in $data). Will return 0, 1, or undef if $os is unknown.
is_unix([ $os ]) => boolCheck whether $os (defaults to $^O if not specified) is Unix (checked by the existence of "unix" tag on the OS's record in $data). Will return 0, 1, or undef if $os is unknown.
HOMEPAGEPlease visit the project's homepage at <https://metacpan.org/release/Perl-osnames>.
SOURCESource repository is at <https://github.com/perlancar/perl-Perl-osnames>.
BUGSPlease report any bugs or feature requests on the bugtracker website <https://rt.cpan.org/Public/Dist/Display.html?Name=Perl-osnames>
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHORperlancar <[email protected]>
COPYRIGHT AND LICENSEThis software is copyright (c) 2014 by [email protected]
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.