# from David E. Wheeler
# on Friday 26 September 2008:
>For future-proofing, I'd be inclined to add support for a hashref of
>parameters:
>
>
>__PACKAGE__->add_property({
> name => 'installdirs'
> default => 'site',
> ...
I would rather it just be a hash. The ({}) thing is redundant.
So, $name is required, and if what's left is an even number, it's a
hash. If it's odd, $default = shift(@_).
--Eric
--
"Matter will be damaged in direct proportion to its value."
--Murphy's Constant
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------