http://www.perlmonks.org?node_id=793356


in reply to Re: How to make an IO::Uncompress::Bunzip2 look like a GLOB
in thread How to make an IO::Uncompress::Bunzip2 look like a GLOB

The statement:

if(UNIVERSAL::can($file,'print')){...}

does not appear to work. I have tried passing it both a string and a GLOB and it never seems to evaluate to true.