Re: [Module-build-general] use only The::Finest => 1.23;
Status: Beta
Brought to you by:
kwilliams
|
From: Brian I. <in...@tt...> - 2003-02-19 20:26:42
|
On 19/02/03 13:54 -0600, Ken Williams wrote:
>
> On Wednesday, February 19, 2003, at 01:44 PM, Brian Ingerson wrote:
>
> > On 19/02/03 11:00 -0600, Ken Williams wrote:
> >>
> >> On Wednesday, February 19, 2003, at 12:46 AM, Brian Ingerson wrote:
> >>
> >>> # Only use MyModule if version is between 0.30 and 0.50
> >>> # but not 0.36; or if version is >= to 0.55.
> >>> use only MyModule => '0.30-0.50 !0.36 0.55-', qw(:all);
> >>
> >> I'm not sure I understand when the parts are and-ed together and when
> >> they're or-ed together. The above seems to mean
> >>
> >> (0.30-0.50 and !0.36) or 0.55-
> >>
> >> or maybe actually
> >>
> >> (0.30-0.50 or 0.55-) and !0.36
> >
> > Aren't those the same? For what version would they have a different
> > effect?
>
> For those numbers they're the same, but for different numbers they're
> not:
>
> (0.30-0.60 and !0.55) or 0.50-
>
> isn't the same as
>
> (0.30-0.60 or 0.50-) and !0.55
>
> because version 0.55 fulfills the first spec, but not the second.
Yeah, but that's a fairly silly spec. You get what you deserve.
I just wanted a syntax that could specify any reasonable condition and
be clean. I think what I have works nicely for this use case.
Can you think of a specification that couldn't be stated using only.pm's
syntax?
---
I took a look at the M::B doc and found:
'>= 1.2, != 1.5, < 2.0'
So how would you do things like:
'0.50-0.70 !0.60-0.65 0.80-0.90 1.00-'
BTW, I was also happy to accomplish full functionality with just '-' and
'!'. I avoided the '>', '>=', '<', '<=', '!=', '==' and ','. YAGNI.
> > I guess I need a more formal phrasing. Ideas?
> >
>
> I think both of us could benefit from listening to someone who's done
> this kind of thing before, too.
I suppose. I'm all ears for better ideas.
Cheers, Brian
|