in reply to Re: Singleton method wrappers for config file properties: Bad idea?
in thread Singleton method wrappers for config file properties: Bad idea?
Yeah, good idea on turning it into a class. I've come to slowly learn that turning just about everything into a class is the way to go. Regarding the singleton methods, I think one big advantage is that every time I add a new property to the config file (I expect to have a couple dozen), I don't have to manually write a new accessor method.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Singleton method wrappers for config file properties: Bad idea?
by shmem (Chancellor) on Apr 01, 2017 at 13:40 UTC | |
|
Re^3: Singleton method wrappers for config file properties: Bad idea?
by haukex (Archbishop) on Apr 01, 2017 at 12:13 UTC |