Upstream software project

perl-Safe-Isa

Call isa, can, does and DOES safely on things that may not be objects

About perl-Safe-Isa

Call isa, can, does and DOES safely on things that may not be objects

This project links 3 native package records across 3 recorded operating-system releases. Compare the retained versions and architectures below, then open the package for your own release.

These are catalog observations, not a guarantee of installation, compatibility, or upstream support.

Project pictures and package coverage

openSUSE Leap 15.6: 1 package records; openSUSE Leap 16.0: 1 package records; openSUSE Tumbleweed: 1 package records. Catalog coverage diagram, not an application screenshot.perl-Safe-Isa: recorded package coverageopenSUSE Leap 15.61 recordsopenSUSE Leap 16.01 recordsopenSUSE Tumbleweed1 records
OpenFactory diagram of linked package records. It is not an application screenshot.

Project identity

Project
perl-Safe-Isa
Publisher
Not authoritatively mapped
Native package records
3
Operating systems
opensuse-leap-15-6, opensuse-leap-16-0, opensuse-tumbleweed
License expression
Artistic-1.0 OR GPL-1.0-or-later
Source repository
Not reported

Source-reported description

The fullest retained description is shown with its source. Distribution packaging descriptions may include downstream details.

How many times have you found yourself writing: if ($obj->isa('Something')) { and then shortly afterwards cursing and changing it to: if (Scalar::Util::blessed($obj) and $obj->isa('Something')) { Right. That's why this module exists. Since perl allows us to provide a subroutine reference or a method name to the -> operator when used as a method call, and a subroutine doesn't require the invocant to actually be an object, we can create safe versions of isa, can and friends by using a subroutine reference that only tries to call the method if it's used on an object. So: my $isa_Foo = $maybe_an_object->$_call_if_object(isa => 'Foo'); is equivalent to my $isa_Foo = do { if (Scalar::Util::blessed($maybe_an_object)) { $maybe_an_object->isa('Foo'); } else { undef; } }; Note that we don't handle trying class names, because many things are valid class names that you might not want to treat as one (like say "Matt") - the 'is_module_name' function from Module::Runtime is a good way to check for something you might be able to call methods on if you want to do that. We are careful to make sure that scalar/list context is preserved for the method that is eventually called.

Description source

Packages by operating system

Compare recorded versions, then open a package for dependency, file, checksum, and repository evidence. Version strings are distribution-specific, not a ranking of newer software.

openSUSE Leap 15.6

  1. Package perl-Safe-Isa

    leap-15.6 (openSUSE Leap 15.6) (Development/Libraries/Perl): Call isa, can, does and DOES safely on things that may not be objects

    1.000010-bp156.3.1: noarch

    Source: perl-Safe-Isa

openSUSE Leap 16.0

  1. Package perl-Safe-Isa

    leap-16.0 (openSUSE Leap 16.0) (Development/Libraries/Perl): Call isa, can, does and DOES safely on things that may not be objects

    1.000010-bp160.1.11: noarch

    Source: perl-Safe-Isa

openSUSE Tumbleweed

  1. Package perl-Safe-Isa

    tumbleweed (openSUSE Tumbleweed) (Development/Libraries/Perl): Call isa, can, does and DOES safely on things that may not be objects

    1.000010-1.32: noarch

    Source: perl-Safe-Isa

Project resources and further reading

Mapping provenance

Only source-backed identity signals create public cross-OS links. A reviewer can later approve or dispute an inferred relationship without rewriting native package history.

No field-level source record is published yet.