[Bioperl-l] BioPerl object deep copy

Spiros Denaxas s.denaxas at gmail.com
Mon Sep 28 15:56:09 UTC 2009


Hi Paolo,

You can use Clone [1]. Blindly cloning blessed objects though is not a
good idea so make sure you know what each one instantiates.

Spiros

[1] http://perldoc.net/Clone.pm

On Mon, Sep 28, 2009 at 4:51 PM, Paolo Pavan <paolo.pavan at gmail.com> wrote:
> Hi all,
> I would like to have just a programming hint, there is a way in
> bioperl (or just in perl) to get an deep copy or a clone of an object?
> That is, I get a new object with all the fields copied one by one.
>
> At least, can I do so for a Bio::SeqI or a Bio::AlignI compliant object?
>
> Thank you,
> Paolo
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>



More information about the Bioperl-l mailing list