perl-Sub-Versions-1.02-alt1.noarch.rpm


Advertisement

Description

perl-Sub-Versions - Subroutine versioning syntactic sugar

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-Sub-Versions
Package version: 1.02
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 27.22 KB
Download size: 27.22 KB
Official Mirror: ftp.altlinux.org
This module provides automatic syntactic sugar for simple subroutine versioning. By specifying a version in the form "v#" as a subroutine attributes, this module will perform a series of compile time symbol table surgeries so you can call subroutines by explicit version or the latest version implicitly. use MyExampleClass; my $object = MyExampleClass->new; $object->simple_method; # calls the latest version of the method $object->v1->simple_method; # calls version 1 of the method Versions must be specified in the form `/v\d+/'. The exact version number you use is irrelevant. The only importance is the relative value of the version numbers to each other. The largest version number is considered the most current version of the subroutine. package MyExampleClass; use Sub::Versions; sub simple_method : v1 { return 'version 1'; } sub simple_method : v2 { return 'version 2'; }

Alternatives

Requires

Provides

  • perl(Sub/Versions.pm) = 1.020
  • perl-Sub-Versions = 1.02-alt1

    Install Howto

    1. Add the following line to /etc/apt/sources.list:
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      
    2. Update the package index:
      # sudo apt-get update
    3. Install perl-Sub-Versions rpm package:
      # sudo apt-get install perl-Sub-Versions

    Files

    • /usr/share/doc/perl-Sub-Versions-1.02/Changes
    • /usr/share/doc/perl-Sub-Versions-1.02/LICENSE
    • /usr/share/doc/perl-Sub-Versions-1.02/README
    • /usr/share/perl5/Sub/Versions.pm
    Advertisement
    Advertisement