Re: invalid installdirs values

[email protected] (Eric Wilhelm)
Newsgroups perl.module.build
Message-ID <[email protected]>
# 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
---------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.