in reply to CPAN, why hast thou forsaken me?
and there you have all your values in a 2D-array.use SuperSplit; open (INI, "<file.ini"); $ini = supersplit( '\n', '\n\s*\n', \*INI);
Just today I posted Supersplit as a craft.
Jeroen
I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)
Update: When I saw davorg's hashes, I wanted that too. It's really simple, just add the following lines:
Hope this helpsmap{ $key=shift( @$_ ); ($key)=~ tr/[]//d; $hash->{$key}=[@$_]; } @$ini;
|
|---|