![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: Including code without packaging?by mikfire (Deacon) |
on May 16, 2001 at 00:54 UTC ( [id://80718]=note: print w/replies, xml ) | Need Help?? |
I could be slightly annoying and point out Config::IniFiles
already exists. Then again, "rolling your own" can frequently
be fun.
As to your exact question, I would make a package anyway. It only adds a few lines to the file and I can almost promise you this code will grow. More functions will be added, maybe some different variables to control how errors are handled, etc. If you start with a package now, it will save you some hassle later.
Of course, ymmv
In Section
Seekers of Perl Wisdom
|
|