libuniversal-can-perl_1.20140328-1_all.deb


Advertisement

Description

libuniversal-can-perl - safer version of UNIVERSAL::can

Distribution: Debian 8 (Jessie)
Repository: Debian Main amd64
Package name: libuniversal-can-perl
Package version: 1.20140328
Package release: 1
Package architecture: all
Package type: deb
Installed size: 61 B
Download size: 13.07 KB
Official Mirror: ftp.br.debian.org
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 one should not do it. Unfortunately, not everyone heeds this warning and their bad code can break good code. This module replaces UNIVERSAL::can() with a method that checks to see if the first argument is a valid invocant (whether an object -- a blessed referent -- or the name of a class). If so, and if the invocant's class has its own can() method, it calls that as a method. Otherwise, everything works as you might expect. If someone attempts to call UNIVERSAL::can() as a function, this module will emit a lexical warning (see perllexwarn) to that effect. You can disable it with no warnings; or no warnings 'UNIVERSAL::isa';, but don't do that; fix the code instead.

Alternatives

Requires

    Download

    Source package: libuniversal-can-perl

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install libuniversal-can-perl deb package:
      # sudo apt-get install libuniversal-can-perl

    Files

    • /usr/share/doc/libuniversal-can-perl/changelog.Debian.gz
    • /usr/share/doc/libuniversal-can-perl/changelog.gz
    • /usr/share/doc/libuniversal-can-perl/copyright
    • /usr/share/man/man3/UNIVERSAL::can.3pm.gz
    • /usr/share/perl5/UNIVERSAL/can.pm

    Changelog

    2014-05-10 - gregor herrmann <gregoa@debian.org> libuniversal-can-perl (1.20140328-1) unstable; urgency=medium * Team upload. * New upstream release. * Strip trailing slash from metacpan URLs.

    2014-01-26 - gregor herrmann <gregoa@debian.org> libuniversal-can-perl (1.20140124-1) unstable; urgency=medium * Team upload. * New upstream release. * Drop pod-encoding.patch, merged upstream. * Update years of upstream copyright. * Declare compliance with Debian Policy 3.9.5.

    2013-06-08 - gregor herrmann <gregoa@debian.org> libuniversal-can-perl (1.20120726-1) unstable; urgency=low * Team upload. [ Alessandro Ghedini ] * New upstream release [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ Alessandro Ghedini ] * Email change: Alessandro Ghedini -> ghedo@debian.org [ Nathan Handler ] * Email change: Nathan Handler -> nhandler@debian.org [ Salvatore Bonaccorso ] * Change search.cpan.org based URIs to metacpan.org based URIs [ gregor herrmann ] * New upstream release. Fixes "FTBFS with perl 5.18: test failures" (Closes: #711622) * debian/copyright: switch formatting to Copyright-Format 1.0. * Update upstream licensing terms. * Set Standards-Version to 3.9.4 (no further changes). * Add a patch to fix POD encoding.

    2011-06-13 - Alessandro Ghedini <al3xbio@gmail.com> libuniversal-can-perl (1.20110613-1) unstable; urgency=low * New upstream release * Switch to 3.0 (quilt) format * Bump debhelper compat level to 8 * Remove Build-Depends on libmodule-build-perl (is in Perl core) * Add myself to Uploaders * Bump Standards-Version to 3.9.2 (no changes needed) * Update upstream copyright years

    2010-01-14 - Jonathan Yu <jawnsy@cpan.org> libuniversal-can-perl (1.16-1) unstable; urgency=low [ Jonathan Yu ] * New upstream release * Update copyright to new DEP5 format * Add myself to Uploaders and Copyright * Refresh copyright years per upstream * Standards-Version 3.8.3 (drop perl version dep) * Module::Build is core as of Perl 5.10 [ Ryan Niebur ] * Update ryan52's email address

    2009-06-22 - Ryan Niebur <ryanryan52@gmail.com> libuniversal-can-perl (1.15-1) unstable; urgency=low [ gregor herrmann ] * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). Removed: XS- Vcs-Svn fields. [ gregor herrmann ] * debian/watch: use dist-based URL. * Slightly improve short description. * debian/copyright: use version-independet upstream source URL and wrap a long line. * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). [ Nathan Handler ] * New upstream release * debian/watch: remove comment * Add myself to list of Uploaders * Bump Standards-Version to 3.8.1 * Bump debhelper Build-Depends to >= 7 * debian/compat: bump to 7 * debian/copyright: update to use new machine readable format [ Ryan Niebur ] * New upstream release * Add myself to Uploaders * Debian Policy 3.8.2 * update d/copyright (now Artistic-2.0) [ Damyan Ivanov ] * [debian/watch] Stop capturing file extension + do not match development releases * use tiny DH7 debian/rules + redundant README no longer shipped

    2006-05-06 - Krzysztof Krzyzaniak (eloy) <eloy@debian.org> libuniversal-can-perl (1.12-1) unstable; urgency=low * Initial Release (closes: #366246).

    Advertisement
    Advertisement