The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Config::Sofu - Easy interface to configuration files in .sofu format

SYNOPSIS

        use vars qw/%CONFIG/; 
        use Config::Sofu "config.sofu"; 
        if ($CONFIG{FOOBAR}) {
                ...
        }
        if ($CONFIG{Bar}->[7]->{Foo} eq "Foobar") {
                ...
        }
        

Save the new configuration:

        $CONFIG{FOOBAR}="Bar times Foo";
        Config::Sofu::save;
        

or

        Config::Sofu::save(%CompletlyNewConfig)

SYNTAX

This class exports the hash %CONFIG by default which contains all the information of the file given to the use statement.

DESCRIPTION

This module does just one thing: It loads data from a .sofu file and puts it into %CONFIG.

FUNCTIONS AND METHODS

save()

Save the new configuration of to the same file again.

If the file was binary sofu it is saved again in binary sofu.

BUGS

The comments in the sofu-file will only be saved again if Data::Sofu >= 0.2.3 is installed.

Can only read binary sofu files if Data::Sofu >= 0.2.8 is installed.

SEE ALSO

Data::Sofu,perl(1),http://sofu.sf.net