Bug#602056: Patch must be removed

Dominique Dumont dominique.dumont at hp.com
Fri May 17 07:15:22 UTC 2013


On Friday 17 May 2013 06:44:46 Xavier wrote:
> According to https://rt.cpan.org/Public/Bug/Display.html?id=62667 this
> is not a bug and the Debian patch must be removed.

OTOH, UNIVERSAL doc mentions:

           # but never do this!
           $is_io    = UNIVERSAL::isa($fd, "IO::Handle");
           $sub      = UNIVERSAL::can($obj, "print");


I think an alternative is suggested at the end of this man page:

   Instead, use "reftype" from Scalar::Util for the first case:

         use Scalar::Util 'reftype';

         $yes = reftype( $h ) eq "HASH";

reftype never returns a class name, it always returns the type of the 
structure hidden behind an object.

Can you modify the patch and test that it works ?

If yes, we will be able to submit another patch to upstream.

HTH


-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org



More information about the pkg-perl-maintainers mailing list