SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Template-Plugin-VMethods rpm build for : OpenSuSE. For other distributions click perl-Template-Plugin-VMethods.

Name : perl-Template-Plugin-VMethods
Version : 0.03 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 1.1 Date : 2011-10-10 14:00:00
Group : Development/Libraries/Perl Source RPM : perl-Template-Plugin-VMethods-0.03-1.1.src.rpm
Size : 0.01 MB
Packager : (none)
Summary : install vmethods
Description :
Simple base class to allow your module to install and remove virtual
methods into the Template Toolkit.

All you need to do in your package is declare one or more of the variables
AATTLIST_OPS, AATTSCALAR_OPS or AATTHASH_OPS to indicate what virtual methods you
want to export.

These can either be the names of functions in your package, or
name/subroutine reference pairs.

For example, using named functions:

package Template::Plugin::HexVMethod;
use base qw(Template::Plugin::VMethods);
AATTSCALAR_OPS = ( \"hex\" );
sub hex { sprintf \"%x\", $_[0] };
1;

For example, using the name and subroutine ref pairs:

package Template::Plugin::DoubleVMethod;
use base qw(Template::Plugin::VMethods);
AATTSCALAR_OPS = ( double => \\&double_string);
AATTLIST_OPS = ( double => \\&double_list);
sub double_string { $_[0]x2 }
sub double_list { [ (AATT{ $_[0] }) x 2] }
1;

For example, mixing the two freely:

package CaesarVMethod;
use base qw(Template::Plugin::VMethods);
AATTSCALAR_OPS = ( \"caesar\",
\"rot13\" => sub { caesar($_[0],\"13\") } );
sub caesar
{
$string = shift;
$string =~ tr/A-Za-z/B-ZAb-za/ for 1..$_[0];
return $string;
}

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/SLE_15/noarch

Content of RPM  Changelog  Provides Requires

Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server

Provides :
perl(Template::Plugin::VMethods)
perl(Template::Plugin::VMethods::VMethodContainer)
perl-Template-Plugin-VMethods

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Template) >= 2.06
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/Template
/usr/lib/perl5/vendor_perl/5.26.1/Template/Plugin
/usr/lib/perl5/vendor_perl/5.26.1/Template/Plugin/VMethods
/usr/lib/perl5/vendor_perl/5.26.1/Template/Plugin/VMethods.pm
/usr/lib/perl5/vendor_perl/5.26.1/Template/Plugin/VMethods/VMethodContainer.pm
/usr/share/doc/packages/perl-Template-Plugin-VMethods
/usr/share/doc/packages/perl-Template-Plugin-VMethods/CHANGES
/usr/share/man/man3/Template::Plugin::VMethods.3pm.gz

 
ICM