Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: $io->can('seek') == true, but $io->seek(pos, whence) == 'Illegal seek' - bug ?

by ikegami (Patriarch)
on Nov 15, 2004 at 05:08 UTC ( [id://407773]=note: print w/replies, xml ) Need Help??


in reply to $io->can('seek') == true, but $io->seek(pos, whence) == 'Illegal seek' - bug ?

can doesn't check the properties of a file handle. can doesn't even know about file handles. can checks if the class or superclasses of an object has a method. Since $plain and $zipped are both IO::Files, can will return the same thing for both handles, no matter what the argument is.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-28 11:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found