Perl 6 Config::INI Improvements

I've renamed the Config::INI repository to something more sensible (since no one had watched/forked it) and now you can write out Config::INI files.

my Config::INI $config .= new;
my %properties = (
    a => 'b',
    c => 'd',
);
my %next = (
    one   => 'two',
    three => 'four',
);
$config.add_properties(:%properties);
$config.add_properties(properties => %next, name => 'next');
$config.write($ini_filename);

It needs more work (primarily solid error checking), but so far I'm fairly pleased with it.

Leave a comment

About Ovid

user-pic Freelance Perl/Testing/Agile consultant and trainer. See http://www.allaroundtheworld.fr/ for our services. If you have a problem with Perl, we will solve it for you. And don't forget to buy my book! http://www.amazon.com/Beginning-Perl-Curtis-Poe/dp/1118013840/