NAME

Config - access Perl configuration option

SYNOPSIS

        use Config;
        if ($Config{'cc'} =~ /gcc/) {
            print "built by gcc\n";
        } 

DESCRIPTION

The Config module contains everything that was available to the Configure program at Perl build time. Shell variables from F%Config, indexed by their names.

EXAMPLE

Here's a more sophisticated example of using %Config:

        use Config;
        defined $Config{sig_name} || die "No sigs?";
        foreach $name (split(' ', $Config{sig_name})) {
            $signo{$name} = $i;
            $signame[$i] = $name;
            $i++;
        }   
        print "signal #17 = $signame[17]\n";
        if ($signo{ALRM}) { 
            print "SIGALRM is $signo{ALRM}\n";
        }   

NOTE

This module contains a good example of how to make a variable readonly to those outside of it.