Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Storable bug?

by gregorovius (Friar)
on Jun 08, 2001 at 18:57 UTC ( [id://86922]=note: print w/replies, xml ) Need Help??


in reply to Storable bug?

Hey, I already knew that!

The bad thaw is there on purpose, to show that after such failure Storable will stop being able to freeze.

It appears to be that something goes wrong in the internal state of Storable when you feed a bad value to 'thaw', that prevents it from working again.

I've tried unloading and reloading after the bad thaw by doing:

delete $INC{'Storable.pm'}; require Storable;
But that only replaces the subroutines and doesn't clear the internal state, which is my guess from the barrage of warnings this gives when run under 'use strict'.

Replies are listed 'Best First'.
Re: Re: Storable bug?
by Anonymous Monk on Jun 09, 2001 at 00:48 UTC
    The warnings come from the fact that you overwrite a sub (from the old Storable) with a new sub (from the required Storable) with the same name. The internal state will be reset, but thats ok therefore no warning.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-20 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found