NAME
POSIX::1003::Confstr - POSIX access to confstr()
INHERITANCE
POSIX::1003::Confstr
is a POSIX::1003
SYNOPSIS
use POSIX::1003::Confstr; # import all
use POSIX::1003::Confstr 'confstr';
my $path = confstr('_CS_PATH');
use POSIX::1003::Confstr '_CS_PATH';
my $path = _CS_PATH;
use POSIX::1003::Confstr '%confstr';
my $key = $confstr{_CS_PATH};
$confstr{_CS_NEW_CONF} = $key;
FUNCTIONS
Standard POSIX
- confstr(NAME)
-
Returns the confstr value related to the NAMEd constant. The NAME must be a string.
undef
will be returned when the NAME is not known by the system.example:
my $path = confstr('_CS_PATH') || '/bin:/usr/bin';
Additional
CONSTANTS
The exported variable %confstr
is a HASH which maps _CS_*
names on unique numbers, to be used with the system's confstr()
function.
SEE ALSO
This module is part of POSIX-1003 distribution version 0.02, built on December 19, 2011. Website: http://perl.overmeer.net. The code is based on POSIX, which is released with Perl itself.
COPYRIGHTS
Copyrights of the perl code and the related documentation by 2011 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://www.perl.com/perl/misc/Artistic.html