Re: I need help with Config:INI

2020-05-30 Thread ToddAndMargo via perl6-users
On 2020-05-30 20:08, ToddAndMargo via perl6-users wrote: Follow up. I just opened An Example to consider adding to your documentation: https://github.com/tadzik/perl6-Config-INI/issues/17

Re: I need help with Config:INI

2020-05-30 Thread ToddAndMargo via perl6-users
Follow up. Special thanks to Peter and David! I wrote a sample program to explain things in my personal documentation: -T Raku: reading INI files: Example: ~ini.test.pl6.ini ~~~ # Raku: Config::INI test INI # edit at your own risk IHave=NoSection [Backup paramters] target

Re: I need help with Config:INI

2020-05-30 Thread Peter Pentchev
On Fri, May 29, 2020 at 05:02:15PM -0700, ToddAndMargo via perl6-users wrote: > Hi All, > > I an not figure out how to read the hash. > > > ~~~ ini.test.pl6.ini ~ > # Raku: Confug::INI test INI > # edit at your own risk > > [Backup paramters] > target=B:\myDocsBackp\backup1

Re: I need help with Config:INI

2020-05-30 Thread David Santiago
Hope this helps :-) Basically the %hash variable contains another hash, and with spaces in keys you cannot use them with "<>" use Config; use Config::INI; my Str $IniFile = slurp "config.ini"; my %hash = Config::INI::parse($IniFile); dd %hash; print "\n"; for %hash.kv -> $section_name, %secti