in reply to Re^4: ChainMap of Hashes on CPAN?
in thread ChainMap of Hashes on CPAN?
Well your code has a logical flaw and a typo.
Obviously untested, but the point was that I cannot see the purpose for a subroutine, never mind a whole class for such a purpose.
I've found this kind of thing very prevalent in Python (& ruby) code that I've converted in the past.
You get a whole bunch of classes to implement some algorithm; but when you strip away the boiler place and make-work, you end up with one or two lines from each class actually doing useful work. (In Perl at least.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: ChainMap of Hashes on CPAN?
by LanX (Saint) on Mar 23, 2013 at 19:31 UTC | |
by BrowserUk (Patriarch) on Mar 23, 2013 at 19:51 UTC | |
by LanX (Saint) on Mar 23, 2013 at 19:55 UTC |