[Bioperl-l] Cloning Bio::Search::Result::GenericResult
Dave Messina
David.Messina at sbc.su.se
Fri May 28 11:32:40 UTC 2010
Hi Rémi,
As far as I know, cloning objects is not natively supported in BioPerl (or Perl itself, for that matter).
So I don't think the code you showed will work.
However, there are modules such as Clone::More and Clone::Fast that can do it.
http://search.cpan.org/~wazzuteke/Clone-More-0.90.2/lib/Clone/More.pm
http://search.cpan.org/~wazzuteke/Clone-Fast-0.93/lib/Clone/Fast.pm
Out of curiosity, what are you trying to do with the cloned objects? Someone might be able to suggest another way to accomplish the same goal.
Dave
More information about the Bioperl-l
mailing list