in reply to Re^2: Parsing XML in a __DATA__ Block
in thread Parsing XML in a __DATA__ Block

In most cases it doesn't matter, but it causes extra pain when you want to write a function that accurately needs to know "do I have a filehandle", like in File::Copy:
my $from_a_handle = (ref($from) ? (ref($from) eq 'GLOB' || UNIVERSAL::isa($from, 'GLOB') || UNIVERSAL::isa($from, 'IO::Handle')) : (ref(\$from) eq 'GLOB'));