Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

RE: (dchetlin: Data::Dumper) Re: ASP and Storable woes

by gregorovius (Friar)
on Sep 29, 2000 at 09:49 UTC ( [id://34562]=note: print w/replies, xml ) Need Help??


in reply to (dchetlin: Data::Dumper) Re: ASP and Storable woes
in thread ASP and Storable woes

Thanks, dchetlin!

The mechanics for doing it with Data::Dumper are the following:

my %h = (key1=>'value1', key2=>{key3=>'value3'}); my $stringy = Dumper \%h; { no strict 'vars'; %h = %{eval($stringy)}; die"$@" if $@; }
That eval there takes 0.25 seconds on my 17,000 elements hash. This is much better than the 0.47s for uudecoding and thawing of the same hash, but still five times more than the 0.05s of thawing that I would get if that peculiar $Application object worked right.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://34562]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found