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

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

by polettix (Vicar)
on Nov 03, 2005 at 17:41 UTC ( #505459=note: print w/replies, xml ) Need Help??

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

It will probably shed no light, but in IO::Zlib you can find this:
sub AUTOLOAD { my $self = shift; $AUTOLOAD =~ s/.*:://; $AUTOLOAD =~ tr/a-z/A-Z/; return tied(*{$self})->$AUTOLOAD(@_); # <== line 566 }
I'm no AUTOLOAD expert, but it could be that instead of Storable::fd_retrieve, the interpreter is trying to call $fh->fd_retrieve and AUTOLOAD does the rest. Try to disambiguate explicitly:
$rep = Storable::fd_retrieve($fh);
Hope this can help!

perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.

Replies are listed 'Best First'.
Re^2: Do Storable and IO::Zlib like to play together?
by fokat (Deacon) on Nov 03, 2005 at 18:22 UTC

    Yes, I did look at that code. I tried your suggestion but it does not change the outcome. However, I'll take a bigger dig into Storable to see what the XS code is doing...

    Thanks and ++ for your suggestion.

    Best regards

    -lem, but some call me fokat

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://505459]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2018-06-21 08:45 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.