in reply to Re: Avoiding DBI handles with Storable
in thread Avoiding DBI handles with Storable
I am just attempting to define a STORABLE_freeze method for the DBI database handle (which seems to be of the DBI::db class, but I haven't been able to investigate past this point yet), which returns a garbage/no-op serialization for the database handle, much like what Storable does by default when you set $Storable::forgive_me and attempt to serialize a coderef or a file handle. Make sense?
Your code seems to work as-is, though, without error (though your _thaw routine is non-sensical from a Storable point of view, as it does nothing to restore the value that was saved, but that doesn't matter), so I'm wondering if I'm doing something wrong at a more fundamental level...
|
|---|