home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


config_vars

config_vars (

names

)

Returns the name/value pairs for the requested configuration variables. Prints the results to STDOUT.

use Config(qw(config_vars));
print config_vars(qw(osname ccflags));
returns:
osname='solaris'
ccflags='-I/usr/local/include/sfio -I/usr/local/include'


Previous: Reference: config_sh Perl in a Nutshell Next: Reference: myconfig
Reference: config_sh Book Index Reference: myconfig

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.