Subject: | UNIVERSAL isa() function import |
Date: | Sun, 15 Aug 2010 10:32:01 +1000 |
To: | bug-Iterator-Simple [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
Perl 5.14.0 or something is supposedly going to break compatibility with
existing code which does an import of UNIVERSAL::isa() like
use UNIVERSAL qw(isa);
which is in Iterator::Simple. Perl 5.12.0 gives a warn() about this (no
doubt because it's thought better to spam a million users than it is to
report to authors of affected code :-(.
I suppose calling isa() as a function is not how it's meant to be used,
or maybe it started out that way but no longer. I can't tell quite what
Iterator::Simple might want, perhaps Scalar::Util::blessed() followed by
$rv->isa(...) ... (though I'm always a bit wary of code that enquires
too much into the nature of its args).