No such thing as a small change | |
PerlMonks |
Re: Reading from an INI fileby mpolo (Chaplain) |
on May 15, 2001 at 18:52 UTC ( [id://80547]=note: print w/replies, xml ) | Need Help?? |
Yes, a hash can accomplish this: In your file, you can leave off the $ signs, as they will be unnecessary. Then:
Now where you would have used $NAME, you can use $hash{'NAME'}. (If I were you, I'd lowercase the key values to make typing easier.)
In Section
Seekers of Perl Wisdom
|
|