3 Config - access Perl configuration option
8 if ($Config{'cc'} =~ /gcc/) {
9 print "built by gcc\n";
14 The Config module contains everything that was available to the
15 C<Configure> program at Perl build time. Shell variables from
16 F<config.sh> are stored in the readonly-variable C<%Config>, indexed by
21 Here's a more sophisticated example of using %Config:
25 defined $Config{sig_name} || die "No sigs?";
26 foreach $name (split(' ', $Config{sig_name})) {
32 print "signal #17 = $signame[17]\n";
34 print "SIGALRM is $signo{ALRM}\n";
39 This module contains a good example of how to make a variable
40 readonly to those outside of it.