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.)
In reply to Re^5: ChainMap of Hashes on CPAN?
by BrowserUk
in thread ChainMap of Hashes on CPAN?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |