summaryrefslogtreecommitdiffstats
path: root/MDK/Common/DataStructure.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-10-15 15:34:24 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-10-15 15:34:24 +0000
commitf2cd7b2f753d5f708308150538d36787d1f098ba (patch)
treedf3e1fe770b6ac8c300f2511f4b095253ba13554 /MDK/Common/DataStructure.pm
parent86ca0f86c5602289aac6584cd6592d201f231f17 (diff)
downloadperl-MDK-Common-f2cd7b2f753d5f708308150538d36787d1f098ba.tar
perl-MDK-Common-f2cd7b2f753d5f708308150538d36787d1f098ba.tar.gz
perl-MDK-Common-f2cd7b2f753d5f708308150538d36787d1f098ba.tar.bz2
perl-MDK-Common-f2cd7b2f753d5f708308150538d36787d1f098ba.tar.xz
perl-MDK-Common-f2cd7b2f753d5f708308150538d36787d1f098ba.zip
titi doesn't suck
Diffstat (limited to 'MDK/Common/DataStructure.pm')
-rw-r--r--MDK/Common/DataStructure.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/MDK/Common/DataStructure.pm b/MDK/Common/DataStructure.pm
index ee649ea..26c8b0f 100644
--- a/MDK/Common/DataStructure.pm
+++ b/MDK/Common/DataStructure.pm
@@ -144,6 +144,7 @@ sub intersection { my (%l, @m); @l{@{shift @_}} = (); foreach (@_) { @m = grep {
sub uniq_(&@) {
my $f = shift;
+ my %l;
$l{$f->($_)} = 1 foreach @_;
grep { delete $l{$f->($_)} } @_;
}