| Jim Keenan 2004-05-13, 10:30 pm |
| Perl extension List::Compare version 0.29 is now available on CPAN and
CPAN mirrors.
Earlier versions of List::Compare required the user to pass the
constructor arguments consisting of options (in a specified order)
followed by a reference to an array holding references to the lists
being compared.
$lc = List::Compare->new('--unsorted', '--accelerated',
\@alpha, \@beta, \@gamma);
Version 0.29 provides the user with an alternative interface in which
a single hash reference is passed to the constructor. This is more
verbose, but also more self-documenting.
$lc = List::Compare->new( {
unsorted => 1,
accelerated => 1,
lists => [ \@alpha, \@beta, \@gamma ],
} );
This alternative interface is also now available for the sister module
List::Compare::Functional.
@intersection = get_intersection( {
unsorted => 1,
accelerated => 1,
lists => [ \@alpha, \@beta, \@gamma ],
} );
The author will be speaking on List-Compare at Yet Another Perl
Conference/YAPC::NA::2004 in Buffalo on June 18 and welcomes comments
in advance thereof. Please send those comments to jkeenan [at] cpan
[dot] org with 'List::Compare' in the subject line. Thank you very
much.
Jim Keenan
Brooklyn, NY
|