use IO::All; use IO::File; open G, 'new_from_fd(fileno(*G{IO}), 'r'); $i = io($h); print $i->getline #### Can't call method "opened" on an undefined value at C:/perl/site/lib/IO/All/File.pm line 78.