The index into the hash is the shell variable name. %Config is always exported; the following three functions are exported on request.
config_sh |
config_sh
Returns all Perl configuration information.
use Config(qw(config_sh)); print config_sh( );
archlibexp='sun4-solaris' cc='cc' ccflags='-I/usr/local/include/sfio -I/usr/local/include' ...
config_vars |
config_vars (names)
use Config(qw(config_vars)); print config_vars(qw(osname ccflags));
osname='solaris' ccflags='-I/usr/local/include/sfio -I/usr/local/include'
Copyright © 2002 O'Reilly & Associates. All rights reserved.