Skip to content

UNIVERSAL.pm docfix #22210

@Lamprecht

Description

@Lamprecht

Where
UNIVERSAL.pm

Description
Documentation of method isa. The sentence below makes no sense:

If you want to be sure that you're calling isa as a method, not a class, check the invocand with blessed from Scalar::Util first:

Suggested fix:

index 5e9537daae..79dda9459e 100644
--- a/lib/UNIVERSAL.pm
+++ b/lib/UNIVERSAL.pm
@@ -82,7 +82,7 @@ reference. The L<C operator|perlop/"Class Instance Operator"> is an
alternative that simply returns false in this case, so the C is not
needed.

-If you want to be sure that you're calling C as a method, not a class,
+If you want to be sure that you're calling C on an instance, not a class,
check the invocand with C from LScalar::Util first:

use Scalar::Util 'blessed';

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions