in reply to Including periodically changing data with modules

I would have your module rely on a separate data provider object to return the data. That way you can encapsulate all of the policies about how the data is stored, versioned, updated, etc. in a user selectable class. Of course, you can define convenience methods which use some default data provider, but you gain the most flexibility by handing off that responsibility to another object and it also is a nature separation of concerns.
  • Comment on Re: Including periodically changing data with modules

Replies are listed 'Best First'.
Re^2: Including periodically changing data with modules
by adamk (Chaplain) on Jul 10, 2008 at 06:08 UTC
    Data::Package
Re^2: Including periodically changing data with modules
by EvanCarroll (Chaplain) on Jul 10, 2008 at 05:38 UTC
    How awkward. I'm playing around with doing this exact thing right now to exclude the translation stuff from Date::Manip.


    Evan Carroll
    I hack for the ladies.
    www.EvanCarroll.com