In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/cb0fc6b21ad6e937bb281f2f76612c49583a012d?hp=c986e4cee1d3feb3c0738d98024b577749621d95>

- Log -----------------------------------------------------------------
commit cb0fc6b21ad6e937bb281f2f76612c49583a012d
Author: Tony Cook <[email protected]>
Date:   Mon Jun 15 11:19:21 2015 +1000

    bump $UNIVERSAL::VERSION

M       lib/UNIVERSAL.pm

commit 1b3ab82cb4bc033c211d9d975557a7a45521f9d5
Author: Karen Etheridge <[email protected]>
Date:   Sun Jun 14 16:24:25 2015 -0700

    UNIVERSAL no longer exports anything
    
    so switch to documenting something that would still work

M       lib/UNIVERSAL.pm
-----------------------------------------------------------------------

Summary of changes:
 lib/UNIVERSAL.pm | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lib/UNIVERSAL.pm b/lib/UNIVERSAL.pm
index 2f16cb5..12800fb 100644
--- a/lib/UNIVERSAL.pm
+++ b/lib/UNIVERSAL.pm
@@ -1,6 +1,6 @@
 package UNIVERSAL;
 
-our $VERSION = '1.12';
+our $VERSION = '1.13';
 
 # UNIVERSAL should not contain any extra subs/methods beyond those
 # that it exists to define. The existence of import() below is a historical
@@ -186,10 +186,8 @@ None.
 Previous versions of this documentation suggested using C<isa> as
 a function to determine the type of a reference:
 
-  use UNIVERSAL 'isa';
-
-  $yes = isa $h, "HASH";
-  $yes = isa "Foo", "Bar";
+  $yes = UNIVERSAL::isa($h, "HASH");
+  $yes = UNIVERSAL::isa("Foo", "Bar");
 
 The problem is that this code would I<never> call an overridden C<isa> method 
in
 any class.  Instead, use C<reftype> from L<Scalar::Util> for the first case:

--
Perl5 Master Repository

Reply via email to