Config::Setting::IniParser

lib::Config::Setting::UseraContributed Perl lib::Config::Setting::IniParser(3)



NAME
       Config::Setting::IniParser - parse windows .ini style files.

SYNOPSIS
        use Config::Setting::IniParser;

        my $ini = Config::Setting::IniParser->new(Filename => $inifile);
        foreach my $s ($ini->sections()) {
            print "[$s]\n";
            foreach my $k ($ini->keylist($s)) {
                print $k, "=", $ini->get($s, $k), "\n";
            }
            print "\n";
        }


DESCRIPTION
       Config::Setting::IniParser provides  OO  access to windows  .ini style
       files.  At present, it only provides read access, not writing.

METHODS
       new ( ARGS )
           Instantiate a new object.  ARGS is a set of keyword / value pairs.
           Recognised options are:

       Filename
               Process the filename provided.

       String  Process the string passed in directly, rather than accessing it
               from the disk.

       CommentChar
               Pass in a character that is used as a comment inside the data.
               This defaults to "#", but is also commonly ";".

               One of Filename or String is required.

       init ( )
           Internal.  Do not use.

       parse ( )
           Internal.  Do not use.

       sections ( )
           Return a list of all sections that occurred in the data.  They are
           returned in the order in which they originally occurred.

       keylist ( SECTION )
           Return a list of all keys in SECTION.

       get ( SECTION, KEY )
           Return the value of KEY in SECTION.

SEE ALSO
       perl(1).

AUTHOR
       Dominic Mitchell, <dom@happygiraffe.net>.

BUGS
       Does not cater for quoted keys and values.

       It is a bit eager about comment stripping.





















3rd Berkeley Distribution    perl 5.005, patlib::Config::Setting::IniParser(3)