Syntactic Confectionery Delight | |
PerlMonks |
Re: Reading from an INI fileby jeroenes (Priest) |
on May 15, 2001 at 18:52 UTC ( [id://80549]=note: print w/replies, xml ) | Need Help?? |
Hashes are much better here! Main reason: you don't want
to pollute your namespace with names that can pop up in
those INI files. Well, actually, you want it now, but after
some experience with the results, you will want that you
didn't want it now. {grin}
With an example: In the remainder of the code, use $ini{$key} to access the ini values. You can read up in perldata. Hope this helps, Jeroen
In Section
Seekers of Perl Wisdom
|
|