io(FileHandle) < $content gets internal errors. #14

ingydotnet opened this Issue Feb 25, 2013 · 0 comments


None yet
1 participant

ingydotnet commented Feb 25, 2013

Hi there,

The pod for IO::All indicates that a file handle may be passed as the argument to io() but the following does not seem to work:

use File::Temp qw(tempfile);
use IO::All;
my ($fh, $path) = tempfile("/tmp/testing_XXXXX");
my $io = io($fh);
$io < "content";

This results in:
Can't call method "opened" on an undefined value at /home/jima/perl5/lib/perl5/IO/All/ line 87.

I'm using Perl v5.14.2

Thanks for any suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment