in reply to Re: Best Practices for creating an OO version of an existing CPAN module?
in thread Best Practices for creating an OO version of an existing CPAN module?
This biggest issue comes from the use of package variables to maintain state. I have a need for the equivalent of multiple instances, and I'd rather not have to write wrapper code to continually update the package state variables every time I call a module function.
An OO interface where I could more cleanly have multiple instances, each with it's own object state, seems like the best solution.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Best Practices for creating an OO version of an existing CPAN module?
by BrowserUk (Patriarch) on Feb 25, 2013 at 20:30 UTC | |
by topher (Scribe) on Feb 25, 2013 at 20:42 UTC | |
by BrowserUk (Patriarch) on Feb 25, 2013 at 22:01 UTC | |
by topher (Scribe) on Feb 28, 2013 at 05:52 UTC | |
|
Re^3: Best Practices for creating an OO version of an existing CPAN module?
by blue_cowdawg (Monsignor) on Feb 25, 2013 at 20:51 UTC | |
by topher (Scribe) on Feb 25, 2013 at 21:22 UTC |