Config::PropertiesSequence - provides access to sequential properties loaded from properties file.
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
see Config::Properties.
$Id: PropertiesSequence.pm,v 1.2 2004/01/31 12:09:35 mark Exp $
To install Config::PropertiesSequence, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Config::PropertiesSequence
CPAN shell
perl -MCPAN -e shell install Config::PropertiesSequence
For more information on module installation, please visit the detailed CPAN module installation guide.