[Bioperl-guts-l] Re: how to use Storable.pm to save the object?

Brian Osborne brian_osborne at cognia.com
Fri Apr 22 15:00:19 EDT 2005


Sally,

I don't know about Storable, I've used Data::Dumper. You can "stringify" the
object like so:

use Data::Dumper;
$str = Dumper($aln);

Then write the string to a file. To re-create the object retrieve the
string, then something like:

$aln = eval "$str";


Brian O.

-----Original Message-----
From: bioperl-guts-l-bounces at portal.open-bio.org
[mailto:bioperl-guts-l-bounces at portal.open-bio.org]On Behalf Of Sally Li
Sent: Friday, April 22, 2005 2:07 PM
To: bioperl-guts-l at bioperl.org
Subject: [Bioperl-guts-l] Re: how to use Storable.pm to save the object?


Hi,

I have waited for a few days since I sent a message to
the discussion group. But there is no response. Maybe
the question is too hard or some other issues? So I
have to submit to the technical group, which is not
appropriate. Sorry!

Your help is appreciated!

Sally.

--- Sally Li <sallyli97 at yahoo.com> wrote:
> Hi, there,
>
> Let's say we have an object which is SimpleAlign
>
> $aln
>
> How can we store this object using Storable.pm in a
> specific directory? I have difficulty to understand
> the doc in module Storable.pm.
>
> Any help will be appreciated!
>
> Thanks!
>
> Sally
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Bioperl-guts-l mailing list
Bioperl-guts-l at portal.open-bio.org
http://portal.open-bio.org/mailman/listinfo/bioperl-guts-l





More information about the Bioperl-guts-l mailing list