![]() |
|
The stupid question is the question not asked | |
PerlMonks |
How do I create an IO::All object from a pre-existing filehandleby DrWhy (Chaplain) |
on Jun 11, 2009 at 00:34 UTC ( [id://770478]=perlquestion: print w/replies, xml ) | Need Help?? |
DrWhy has asked for the wisdom of the Perl Monks concerning the following question:
Or perhaps the question is, is it possible at all? I would like to create a function that can take a file name or a previously opened generic perl filehandle and turn that into and IO::All object for processing. I haven't been able to create a usable IO::All object from a filehandle to this point. Here are some of the scenarios I've tried:
The docs of IO::All seem to imply that this should work, but when I run this (Win XP, ActiveState Perl 5.8.8, IO:All v0.33), I get:
I've also tried variations without the IO::File intermediary, i.e., $i = io(*G{IO}), $i = io(\*G), $i = io->handle(*G), all to no avail. Has anyone been down the path before and have a workable solution to this? Update: This is now in RT. Thanks,
--DrWhy "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
Back to
Seekers of Perl Wisdom
|
|