perl-List-ToHash-0.02-alt2.1.i586.rpm


Advertisement

Description

perl-List-ToHash - List to hash which have unique keys

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports i586
Package filename perl-List-ToHash-0.02-alt2.1.i586.rpm
Package name perl-List-ToHash
Package version 0.02
Package release alt2.1
Package architecture i586
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 36.37 KB
Installed size 36.37 KB
List::ToHash provides fast conversion list to hash by using lightweight callback API.
`map' is so simple and good for readability. I usually use this in this situation.
my $x = +{map { ($_->{id} => $_) } @users};
`List::Util::reduce' is a little tricky however it works faster than `map'.
my $x = List::Util::reduce { $a->{$b->{id}} = $b; $a } ({}, @ARRAY);
`for' is lame... Look, it spends two lines.
my $x = {};
$x->{$_->{id}} = $_ for @users;
`List::ToHash::to_hash' is a quite simple way, more faster.
my $x = List::ToHash::to_hash { $_->{id} } @users;

Alternatives

Package Version Architecture Repository
perl-List-ToHash-0.02-alt2.1.x86_64.rpm 0.02 x86_64 Autoimports
perl-List-ToHash - - -

Requires

Name Value
/usr/lib/perl5 -
libc.so.6(GLIBC_2.1.3) -
libc.so.6(GLIBC_2.4) -
libperl-5.28.so -
perl(XSLoader.pm) -
rpmlib(PayloadIsLzma) -
rpmlib(SetVersions) -
rtld(GNU_HASH) -

Provides

Name Value
perl(List/ToHash.pm) = 0.020
perl-List-ToHash = 0.02-alt2.1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-List-ToHash-0.02-alt2.1.i586.rpm
Source Package perl-List-ToHash-0.02-alt2.1.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 i586 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-List-ToHash rpm package:
    # sudo apt-get install perl-List-ToHash

Files

Path
/usr/lib/perl5/List/ToHash.pm
/usr/lib/perl5/auto/List/
/usr/lib/perl5/auto/List/ToHash/ToHash.so
/usr/share/doc/perl-List-ToHash-0.02/Changes
/usr/share/doc/perl-List-ToHash-0.02/LICENSE
/usr/share/doc/perl-List-ToHash-0.02/README.md

See Also

Package Description
perl-List-UtilsBy-XS-0.05-alt2.1.i586.rpm XS implementation of List::UtilsBy
perl-Locale-Hebrew-Calendar-0.03-alt4.1.i586.rpm Jewish Calendar
perl-Locale-XGettext-0.7-alt1.1.i586.rpm Extract Strings To PO Files
perl-Locale-XGettext-scripts-0.7-alt1.1.i586.rpm Locale-XGettext scripts
perl-Location-GeoTool-2-alt4.1.i586.rpm perl module Location-GeoTool
perl-Locked-Storage-1.10-alt1.i586.rpm A locked in RAM memory region
perl-Log-Agent-Logger-0.200-alt2.1.i586.rpm perl module Log-Agent-Logger
perl-Log-Agent-Rotate-1.200-alt2.1.i586.rpm perl module Log-Agent-Rotate
perl-Log-Syslog-Fast-0.65-alt4.1.i586.rpm Perl extension for sending syslog messages over TCP, UDP,
perl-Logfile-0.302-alt4.1.i586.rpm perl module Logfile
perl-Lua-API-0.04-alt1.i586.rpm interface to Lua's embedding API
perl-Lucy-0.6.2-alt1.1.i586.rpm Apache Lucy search engine library
perl-Lufs-0.21-alt4.1.i586.rpm Perl plug for lufs
perl-MIDI-ALSA-1.22-alt2_5.i586.rpm ALSA library access for Perl, plus some interface functions
perl-MIDI-Music-0.01-alt4.1.i586.rpm Perl interface to /dev/music
Advertisement
Advertisement