Mark Clements > Config-PropertiesSequence-1.003 > Config::PropertiesSequence

Download:
Config-PropertiesSequence-1.003.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.002   Source  

NAME ^

Config::PropertiesSequence - provides access to sequential properties loaded from properties file.

USAGE ^

my $props = Config::PropertiesSequence->new();

$props->load( *FH );

my @multipleSettings = $props->getPropertySequence( $prefix, @names );

returns settings prefixed by $prefix, numbered consecutively and suffixed with values from @names.

eg when

my $prefix = "test.settings.multi";

my @names = qw(setting1 setting2);

then getPropertySequence will return

( { setting1 => "abc", setting2 => "def" }, { setting1 => "ghi", setting2 => "jkl" } )

from a properties file containing

test.settings.multi.1.setting1=abc test.settings.multi.1.setting2=def test.settings.multi.2.setting1=ghi test.settings.multi.2.setting2=jkl

NOTES ^

see Config::Properties.

VERSION ^

$Id: PropertiesSequence.pm,v 1.2 2004/01/31 12:09:35 mark Exp $

syntax highlighting: