in reply to Re: List::Compare
in thread List::Compare
Re: Dragonchild on List::Compare not working with references:
The real-world production problems for which I originally developed List::Compare did not include lists of Perl references. The module was not designed to handle them and has never been tested against them.
If you can suggest a way for the module to detect when a list passed to the constructor (or a function in List::Compare::Functional) contains a reference, I will be happy to generate a 'die' at that point. Otherwise, I'll simply include a warning against this in the next revision of the documentation.
Re: Dragonchild on List::Compare not preserving order
I don't see any particular reason why a report on the the intersection, union, etc., of two or more lists should come back in any particular order. Whatever order the original lists had is untouched; the order of the set comparisons is irrelevant. As the documentation says at a couple of points, List::Compare was designed to answer the question: Was this item seen in that list? Pure and simple. In what position in the list the item was seen is a question for a different module to answer. Jim Keenan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: List::Compare
by dragonchild (Archbishop) on Jun 04, 2004 at 15:06 UTC |