Thread

Posted on Thu May 15 17:51:16 2008 by ziyunxiao
Can anyone help with using option allow_multiple?
Here is my sample. INI:
[matrix] key=value1 key=value2 key=value3
I want the result is
$hash->{matrix}->{key}[0] is value1 $hash->{matrix}->{key}[0] is value2 and so on
How to use option allow_multiple to get the result? Thanks a lot. robin
Direct Responses: 7888 | Write a response
Posted on Thu May 15 18:54:32 2008 by jenda in response to 7887
Re: Can anyone help with using option allow_multiple?
use Config::IniHash; use Data::Dumper; $Config = ReadINI \*DATA, allow_multiple => 1; print Dumper(\$Config); __DATA__ [matrix] key=value1 key=value2 key=value3

Seems to work fine for me.
Jenda

Direct Responses: 7889 | Write a response
Posted on Thu May 15 23:11:11 2008 by ziyunxiao in response to 7888
Re: Can anyone help with using option allow_multiple?
Thank you very much! I found where I'm wrong for this case.
Write a response