perl-ActionExporter-0.02-alt1.noarch.rpm


Advertisement

Description

perl-ActionExporter - Extends Exporter with the export_action() function, for use with the GCT::XSP::ActionTaglib module

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-ActionExporter
Package version: 0.02
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 3.64 KB
Download size: 3.64 KB
Official Mirror: ftp.altlinux.org
Extends Exporter with the export_action() function. Calling ActionExporter::export_action("foo") exports the two subs 'foo_start' and 'foo_end' under a export tag 'foo'. This is usefull for creating an action Library as follows: package MyActionsLibrary; require ActionExporter; our @ISA = ("ActionExporter"); ActionExporter::export_action("foo"); sub foo_start{ return '';} sub foo_end{ return '';} ActionExporter::export_action("bar"); sub bar_start{ return '';} sub bar_end{ return '';} A taglib created using using ActionTaglib can then use the 'foo' actions by simply adding 'use MyActionLibrary qw(:foo);', for example: package MyTaglib; use GCT::XSP::ActionTaglib; @ISA = qw(use GCT::XSP::ActionTaglib;); our $tagactions; use MyActionLibrary qw(:foo); $tagactions->{tag1}=[{ -action => 'foo' }]; Actions exported using the export_action() command are also added to the 'allactions' export tag so a taglib could import all the actions from an action library with: use MyActionLibrary qw(:allactions); $tagactions->{tag1}=[{ -action => 'foo' }]; $tagactions->{tag2}=[{ -action => 'bar' }];

Alternatives

Requires

  • /usr/share/perl5
  • rpmlib(PayloadIsLzma)

Provides

  • perl(ActionExporter.pm) = 0.020
  • perl-ActionExporter = 0.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-ActionExporter rpm package:
      # sudo apt-get install perl-ActionExporter

    Files

    • /usr/share/doc/perl-ActionExporter-0.02/Changes
    • /usr/share/doc/perl-ActionExporter-0.02/README
    • /usr/share/perl5/ActionExporter.pm
    Advertisement
    Advertisement