http://qs1969.pair.com?node_id=505490


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?

Replies are listed 'Best First'.
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.";