POSIX::1003::OS - POSIX for the file-system
use POSIX::1003::OS qw(uname TMP_MAX); my ($sys, $node, $rel, $version, $machine) = uname(); print TMP_MAX;
You may also need POSIX::1003::Pathconf.
Get the name of current operating system.
my ($sysname, $node, $release, $version, $machine) = uname();
Note that the actual meanings of the various fields are not that well standardized: do not expect any great portability. The $sysname might be the name of the operating system, the $nodename might be the name of the host, the $release might be the (major) release number of the operating system, the $version might be the (minor) release number of the operating system, and $machine might be a hardware identifier. Maybe.
$sysname
$nodename
$release
$version
$machine
Be warned that constants defined in this module may move to mode specific modules over time.
The constant names for this math module are inserted here during installation.
This module is part of POSIX-1003 distribution version 1.02, built on November 10, 2020. Website: http://perl.overmeer.net/CPAN. The code is based on POSIX, which is released with Perl itself. See also POSIX::Util for additional functionality.
Copyrights 2011-2020 on the perl code and the related documentation by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
To install POSIX::1003, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POSIX::1003
CPAN shell
perl -MCPAN -e shell install POSIX::1003
For more information on module installation, please visit the detailed CPAN module installation guide.