mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Add LICENSE
- Use USE_PERL5=configure - Update PLIST - Bump PORTREVISION for package change - Reformat and shorten pkg-descr - Use single space after WWW:
This commit is contained in:
parent
f9d3062684
commit
ff3e7424e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360975
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= Data-Rmap
|
||||
PORTVERSION= 0.62
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
@ -10,9 +11,12 @@ PKGNAMEPREFIX= p5-
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= Recursive map, apply a block to a data structure
|
||||
|
||||
LICENSE= ART10 GPLv1
|
||||
LICENSE_COMB= dual
|
||||
|
||||
TEST_DEPENDS= p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception
|
||||
|
||||
USE_PERL5= configure
|
||||
USES= perl5
|
||||
USE_PERL5= modbuild
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,26 +1,10 @@
|
||||
Recursively evaluate a BLOCK over a list of data structures (locally
|
||||
setting $_ to each element) and return the list composed of the
|
||||
results of such evaluations. $_ can be used to modify the elements.
|
||||
Recursively evaluate a BLOCK over a list of data structures (locally setting $_
|
||||
to each element) and return the list composed of the results of such
|
||||
evaluations. $_ can be used to modify the elements.
|
||||
|
||||
Data::Rmap currently traverses HASH, ARRAY, SCALAR and GLOB reference
|
||||
types and ignores others. Depending on which rmap_* wrapper is used,
|
||||
the BLOCK is called for only scalar values, arrays, hashes,
|
||||
references, all elements or a customizable combination.
|
||||
Data::Rmap currently traverses HASH, ARRAY, SCALAR and GLOB reference types and
|
||||
ignores others. Depending on which rmap_* wrapper is used, the BLOCK is called
|
||||
for only scalar values, arrays, hashes, references, all elements or a
|
||||
customizable combination.
|
||||
|
||||
The list of data structures is traversed pre-order in a depth-first
|
||||
fashion. That is, the BLOCK is called for the container reference
|
||||
before is it called for it's elements (although see "recurse" below
|
||||
for post-order). The values of a hash are traversed in the usual
|
||||
"values" order which may affect some applications.
|
||||
|
||||
If the "cut" subroutine is called in the BLOCK then the traversal
|
||||
stops for that branch, say if you "cut" an array then the code is
|
||||
never called for it's elements (or their sub-elements). To
|
||||
simultaneously return values and cut, simply pass the return list to
|
||||
cut: cut('add','to','returned');
|
||||
|
||||
The first parameter to the BLOCK is an object which maintains the
|
||||
state of the traversal. Methods available on this object are
|
||||
described in "State Object" below.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Data-Rmap/
|
||||
WWW: http://search.cpan.org/dist/Data-Rmap/
|
||||
|
@ -1,3 +1,6 @@
|
||||
%%SITE_PERL%%/Data/Rmap.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Rmap/.packlist
|
||||
%%PERL5_MAN3%%/Data::Rmap.3.gz
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Rmap
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data
|
||||
@dirrmtry %%SITE_PERL%%/Data
|
||||
|
Loading…
Reference in New Issue
Block a user