Upstream software project

perl-UNIVERSAL-can

work around buggy code calling UNIVERSAL::can() as a function

About perl-UNIVERSAL-can

work around buggy code calling UNIVERSAL::can() as a function

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-UNIVERSAL-can: 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-UNIVERSAL-can
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+
Source repository
Not reported

Source-reported description

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

The UNIVERSAL class provides a few default methods so that all objects can use them. Object orientation allows programmers to override these methods in subclasses to provide more specific and appropriate behavior. Some authors call methods in the UNIVERSAL class on potential invocants as functions, bypassing any possible overriding. This is wrong and you should not do it. Unfortunately, not everyone heeds this warning and their bad code can break your good code. This module replaces 'UNIVERSAL::can()' with a method that checks to see if the first argument is a valid invocant has its own 'can()' method. If so, it gives a warning and calls the overridden method, working around buggy code. Otherwise, everything works as you might expect. Some people argue that you must call 'UNIVERSAL::can()' as a function because you don't know if your proposed invocant is a valid invocant. That's silly. Use 'blessed()' from the Scalar::Util manpage if you want to check that the potential invocant is an object or call the method anyway in an 'eval' block and check for failure (though check the exception _returned_, as a poorly-written 'can()' method could break Liskov and throw an exception other than "You can't call a method on this type of invocant"). Just don't break working code.

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-UNIVERSAL-can

    leap-15.6 (openSUSE Leap 15.6) (Development/Libraries/Perl): work around buggy code calling UNIVERSAL::can() as a function

    1.20140328-bp156.3.1: noarch

    Source: perl-UNIVERSAL-can

openSUSE Leap 16.0

  1. Package perl-UNIVERSAL-can

    leap-16.0 (openSUSE Leap 16.0) (Development/Libraries/Perl): work around buggy code calling UNIVERSAL::can() as a function

    1.20140328-bp160.1.12: noarch

    Source: perl-UNIVERSAL-can

openSUSE Tumbleweed

  1. Package perl-UNIVERSAL-can

    tumbleweed (openSUSE Tumbleweed) (Development/Libraries/Perl): work around buggy code calling UNIVERSAL::can() as a function

    1.20140328-3.38: noarch

    Source: perl-UNIVERSAL-can

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.