perl-Data-CircularList-0.03-alt1.noarch.rpm


Advertisement

Description

perl-Data-CircularList - simple implementation for using CircularList data structure

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Data-CircularList-0.03-alt1.noarch.rpm
Package name perl-Data-CircularList
Package version 0.03
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 21.64 KB
Installed size 21.64 KB
Quick summary of what the module does.
Perhaps a little code snippet.
use Data::CircularList;
my $list = Data::CircularList->new;
$list->insert(20);
$list->insert(15);
$list->insert(18);
$list->insert(37);
$list->insert(3);
my $iter = $list->iterator;
while ($iter->has_next) {
print $iter->next->data . "\n";
}
...
my $iter = $list->iterator( rotate => 2 );
while ($iter->has_next) {
print $iter->next->data . "\n";
}
$list = Data::CircularList->new;
$list->insert('steeve');
$list->insert('hisashi');
$list->insert('takairo');
$list->insert('kazuyo');
$list->insert('jane');
$iter = $list->iterator;
while ($iter->has_next) {
print $iter->next->data . "\n";
}
...
$iter = $list->iterator( rotate => 2 );
while ($iter->has_next) {
print $iter->next->data . "\n";
}
$list = Data::CircularList->new;
$list->insert(Person->new(name => 'lally'));
$list->insert(Person->new(name => 'hisashi'));
$list->insert(Person->new(name => 'takairo'));
$list->insert(Person->new(name => 'kazuyo'));
$list->insert(Person->new(name => 'jane'));
package Person;
sub new {
my $class = shift;
my %args = @_;
my $self = {
name => $args{'name'},
length => length($args{'name'}),
};
bless $self => $class;
$self->length(length($args{'name'}));
return $self;
}
sub compare_to {
my $self = shift;
my $cell = shift;
if ($self->length > $cell->length) {
return 1;
} elsif ($self->length == $cell->length) {
return $self->name gt $cell->name ? 1 : 0;
} else {
return 0;
}
}
sub name {
my $self = shift;
return defined $self->{'name'} ? $self->{'name'} : undef;
}
sub length {
my $self = shift;
return defined $self->{'length'} ? $self->{'length'} : undef;
}

Alternatives

Package Version Architecture Repository
perl-Data-CircularList - - -

Requires

Name Value
/usr/share/perl5 -
perl(Class/Accessor.pm) >= 0.340
perl(Scalar/Util.pm) >= 1.230
perl(parent.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Data/CircularList.pm) = 0.030
perl(Data/CircularList/Cell.pm) = 0.030
perl(Data/CircularList/Iterator.pm) = 0.030
perl-Data-CircularList = 0.03-alt1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-Data-CircularList-0.03-alt1.noarch.rpm
Source Package perl-Data-CircularList-0.03-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Data-CircularList rpm package:
    # sudo apt-get install perl-Data-CircularList

Files

Path
/usr/share/doc/perl-Data-CircularList-0.03/Changes
/usr/share/doc/perl-Data-CircularList-0.03/README
/usr/share/perl5/Data/CircularList.pm
/usr/share/perl5/Data/CircularList/Cell.pm
/usr/share/perl5/Data/CircularList/Iterator.pm

See Also

Package Description
perl-Data-Classifier-0.01-alt1.noarch.rpm perl module Data-Classifier
perl-Data-Classifier-NaiveBayes-0.001-alt1.noarch.rpm Naive Bayes Classifier
perl-Data-Clean-0.502-alt1.noarch.rpm Clean data structure
perl-Data-Clean-ForJSON-0.392-alt1.noarch.rpm Clean data so it is safe to output to JSON
perl-Data-Clean-JSON-0.391-alt1.noarch.rpm Clean data so it is safe to output to JSON
perl-Data-Clean-ToStringyNumber-0.04-alt1.noarch.rpm Convert non-stringy numbers in data to stringy numbers
perl-Data-CleanJSON-0.002-alt1.noarch.rpm Clean data so it is safe to output to JSON
perl-Data-Cloud-0.03-alt1.noarch.rpm Utility for word cloud
perl-Data-CloudWeights-0.15.1-alt1.noarch.rpm Calculate values for an HTML tag cloud
perl-Data-Cmp-0.006-alt1.noarch.rpm Compare two data structures, return -1/0/1 like cmp
perl-Data-CodeRepos-CommitPing-0.03-alt1.noarch.rpm CodeRepos commit ping data handler
perl-Data-Collector-0.15-alt1.noarch.rpm Collect information from multiple sources
perl-Data-Collector-scripts-0.15-alt1.noarch.rpm Data-Collector scripts
perl-Data-Coloured-0.003-alt1.noarch.rpm Visualize random ASCII data streams
perl-Data-Coloured-scripts-0.003-alt1.noarch.rpm Data-Coloured scripts
Advertisement
Advertisement