Config of a Store
mail at tobyinkster.co.uk
Sun Jun 27 23:23:02 CEST 2010
On Sun, 27 Jun 2010 14:17:30 +0200
Kjetil Kjernsmo <kjetil at kjernsmo.net> wrote:
> I feel that it would be better to pass a hashref with the config,
> than coming up with a universal string to work in all circumstances.
There's a certain appeal to using a plain string. A string can easily
be stored in a configuration file, or passed as a command line
If you want to instantiate a store using a hashref, there's
new_with_object since 0.123. While it's probably designed to take a
blessed object, there doesn't seem to be anything preventing it from
taking a plain hashref.
Toby A Inkster
<mailto:mail at tobyinkster.co.uk>
More information about the Dev