http://qs321.pair.com?node_id=700214


in reply to what does IO::File=GLOB mean?

You are printing the file handle reference. It is coming from this line:
print $fh;
In order to have perl treat $fh as a file handle, you need to use one of the following:
print {$fh} $_; print $fh $_;