CC: | jhi [...] iki.fi |
Subject: | Set::Scalar::Valued |
Date: | Wed, 22 Jun 2011 13:44:03 -0700 |
To: | bug-Set-Scalar [...] rt.cpan.org |
From: | Kiran Mukhyala <mukhyala.kiran [...] gene.com> |
Hello Jarkko,
I found Set::Scalar::Valued on CPAN after an extensive search for doing set
operations on objects and I am thrilled that its working as I needed and
hoped it would.
After deciding to go with it I found a problem when running a difference
operation between two sets where set1 has only one member which is also
present in set2 so that the expected difference between set1 and set2 is
null.
Here's how to reproduce:
Show quoted text
>perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
Show quoted text>uname -a
Linux rescomp231 2.6.32.27-0.2.2.2571.0.PTF-default #1 SMP 2010-12-29
15:03:02 +0100 x86_64 x86_64 x86_64 GNU/Linux
Show quoted text>perl -MSet::Scalar::Valued -e '
my $a = Set::Scalar::Valued->new(a=>1);
my $b = Set::Scalar::Valued->new(a=>1, b=>2);
print $a-$b;'
The $a-$b operation just hangs on my machine. I would appreciate any help
on how to resolve this problem.
Thank you for writing this module and your time on this problem.
Best Regards,
-Kiran
--
Kiran Mukhyala
Computational Biologist
Bioinformatics and Computational Biology
Genentech, Inc.
Office: 650 225 3278
Fax : 650 225 5389