On Mon Oct 18 09:59:52 2010, AKALINUX wrote:
Show quoted text> On Mon Oct 18 03:31:17 2010, NKH wrote:
> > I was going to rate this module one star but decided to make this a bug
> > instead.
> >
> > To some users modules are not worth more than their documentation. This
> > "universal" module should get a _much_ better one.
>
> Not sure this is a bug, was there documentation you expected to have?
> What are you trying to do and don't understand from the documentation?
I have been looking over some of your modules and I think I understand
what you were trying to use my package for.
The package I wrote requires a hash with 3 code references.
cmp_values
add_one
sub_one
cmp_values is used to compare 2 objects
Example:
sub cmp_values { $_[0] <=> $_[1] }
so given cmp_values(0,1)
cmp_values would return -1
add_one is used to calculate the next value, effectively this value +1
or what ever really makes this the next value.
sub add_one { $_[0] + 1 }
so given add_one(1)
add_one would return 2
sub_one is used to calculate the previous value, effectively this value -1
or what ever really makes this the previous value.
Since you are manipulating binary data, you would have to understand how
to calculate your next binary value.
Since I'm not really sure what you're data really is, I can't really
suggest code to handle the needed operations.
At any rate, I have updated my documentation as of release
Data-Range-Compare-1.018.tar.gz
To help define the pre-requisites for the constructor call.
I have also added an example with DateTime, that may help explain how to
do what you are trying to do.
See Data::Range::Compare::Cookbook::Recipe_DateTime
As of this post, I'm still waiting for cpan to copy over my updated code.