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?? |
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.
In Section
Seekers of Perl Wisdom
|
|