Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Do Storable and IO::Zlib like to play together?

by fokat (Deacon)
on Nov 03, 2005 at 19:52 UTC ( #505490=note: print w/ replies, xml ) Need Help??


in reply to Re: Do Storable and IO::Zlib like to play together?
in thread Do Storable and IO::Zlib like to play together?

Thanks sauoq.

That's a minimal demonstration of the problem.

Yep. I guess we arrived to the problem quite close. IO::Zlib does not seem to implement fileno. But even after faking it (as shown in my Updated node), there is something else going bad.

(So, you can stop looking at Storable as the real problem, anyway.)

Well, I don't understand why Storable wants to verify that it got a real handle. It should try to do its thing with whatever it got as an argument.

But in this case, this does not look like the cause.

Best regards

-lem, but some call me fokat


Comment on Re^2: Do Storable and IO::Zlib like to play together?
Re^3: Do Storable and IO::Zlib like to play together?
by sauoq (Abbot) on Nov 03, 2005 at 19:58 UTC
    IO::Zlib does not seem to implement fileno.

    That's not really the problem, I don't think. At least, not the first one. We are never getting out of AUTOLOAD routine (and not because a method is missing.) The problem is that a call to fileno() doesn't play well with the tied handle provided by IO::Zlib.

    It should try to do its thing with whatever it got as an argument.

    That's debatable. I'd be inclined to do it Storable's way.

    -sauoq
    "My two cents aren't worth a dime.";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2014-11-26 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (164 votes), past polls