Hans Dieter Pearcey > Config-INI-Reader-Ordered > Config::INI::Reader::Ordered

Download:
Config-INI-Reader-Ordered-0.011.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.011   Source  

NAME ^

Config::INI::Reader::Ordered -- .ini-file parser that returns sections in order

VERSION ^

version 0.011

SYNOPSIS ^

If family.ini contains:

  admin = rjbs

  [rjbs]
  awesome = yes
  height = 5' 10"

  [mj]
  awesome = totally
  height = 23"

Then when your program contains:

  my $array = Config::INI::Reader->read_file('family.ini');

$array will contain:

  [
    [ '_'  => { admin => 'rjbs' } ],
    [
      rjbs => {
        awesome => 'yes',
        height  => q{5' 10"},
      }
    ],
    [ 
      mj   => {
        awesome => 'totally',
        height  => '23"',
      }
    ],
  ]

DESCRIPTION ^

Config::INI::Reader::Ordered is a subclass of Config::INI::Reader which preserves section order. See Config::INI::Reader for all documentation; the only difference is as presented in the "SYNOPSIS".

METHODS ^

change_section

set_value

finalize

Overridden to preserve and present section order.

syntax highlighting: