Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: How to make an IO::Uncompress::Bunzip2 look like a GLOB

by Pascal666 (Scribe)
on Aug 24, 2009 at 04:32 UTC ( #790726=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to make an IO::Uncompress::Bunzip2 look like a GLOB
in thread How to make an IO::Uncompress::Bunzip2 look like a GLOB

Thank you. That does indeed get me past the initial "if". Unfortunately the restore part of your code does not appear to work. With that code I get:

Can't locate object method "READ" via package "1"

If I change your last line to

bless $obj, 'IO::Uncompress::Bunzip2';

then it works correctly. Thank you for your help.

Replies are listed 'Best First'.
Re^5: How to make an IO::Uncompress::Bunzip2 look like a GLOB
by Anonymous Monk on Aug 24, 2009 at 09:26 UTC
    Foiled by prototypes again
    bless $obj, shift @GLOB::ISA;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2020-10-22 19:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (229 votes). Check out past polls.

    Notices?