Subject: | Cannot create a usable IO::All object from a file handle |
This bug behavior is described in PerlMonks:
http://www.perlmonks.org/?node_id=770478
Although the docs indicate that you should be able to:
open(HANDLE, '<', 'my.file');
$i = io(\*HANDLE);
or
$h = new IO::File();
$h->open('< my.file');
$i = io($h);
and you can get an IO::All object out of it, that object is malformed
and will cause fatal errors when you try to do anything useful with it,
like for instance calling $i->getline. In this case you get:
Can't call method "opened" on an undefined value at
c:/perl/site/lib/IO/All/File.pm line 87.
More discussion is available in the link above.