NAME
Statistics::UIDList - stats ID list
SYNOPSIS
my $id = Statistics::UIDList->new(
[qw/a001 a002 a003 b001 c001/],
[qw/a001 a002/],
);
# get id list
warn $id->list;
# get unique id list
warn $id->uniq;
# get only deprecated id list
warn $id->dep;
# get count limited id list
warn $id->limit(2);
DESCRIPTION
Statistics::UIDList is
METHODS
new
constractor
list($num)
get $num-th id list, unless $num then get all id list
uniq($num)
get $num-th unique id list, unless $num then get all unique id list
dep
get deprecated id list
deprecate
alias of dep
function
limit($num or $cond_sub)
If you pass the arg as int number, then limit
get back count limited id list. If you pass the code ref, then limit
get back list that include true condition values.
warn $id->limit(sub{
my ($count, $id) = @_;
$id > 100 and $count > 1;
});
REPOSITORY
Statistics::UIDList is hosted on github <http://github.com/bayashi/Statistics-UIDList>
Welcome your patches and issues :D
AUTHOR
Dai Okabayashi <bayashi@cpan.org>
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.