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

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports x86_64
Package filename perl-List-ToHash-0.02-alt2.1.x86_64.rpm
Package name perl-List-ToHash
Package version 0.02
Package release alt2.1
Package architecture x86_64
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 37.08 KB
Installed size 37.08 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;


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


Name Value
/usr/lib64/perl5 - - - -
perl( -
rpmlib(PayloadIsLzma) -
rpmlib(SetVersions) -
rtld(GNU_HASH) -


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


Type URL
Binary Package perl-List-ToHash-0.02-alt2.1.x86_64.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] x86_64 autoimports
    rpm [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



See Also

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