Name : perl-Exporter-Easy
| |
Version : 0.180.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.4
| Date : 2015-11-14 10:44:54
|
Group : Unspecified
| Source RPM : perl-Exporter-Easy-0.180.0-1.4.src.rpm
|
Size : 0.04 MB
| |
Packager : (none)
| |
Summary : Takes the drudgery out of Exporting symbols
|
Description :
Exporter::Easy makes using Exporter easy. In its simplest case, it allows you to drop the boilerplate code that comes with using Exporter, so
require Exporter; use base qw( Exporter ); use vars qw( AATTEXPORT ); AATTEXPORT = ( \'init\' );
becomes
use Exporter::Easy ( EXPORT => [ \'init\' ] );
and more complicated situations where you use tags to build lists and more tags become easy, like this
use Exporter::Easy ( EXPORT => [qw( init :base )], TAGS => [ base => [qw( open close )], read => [qw( read sysread readline )], write => [qw( print write writeline )], misc => [qw( select flush )], all => [qw( :base :read :write :misc)], no_misc => [qw( :all !:misc )], ], OK => [qw( some other stuff )], );
This will set \'AATTEXPORT\', \'AATTEXPORT_OK\', \'AATTEXPORT_FAIL\' and \'%EXPORT_TAGS\' in the current package, add Exporter to that package\'s \'AATTISA\' and do a \'use vars\' on all the variables mentioned. The rest is handled as normal by Exporter.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Tumbleweed/noarch |