aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Data-Rmap
Commit message (Collapse)AuthorAgeFilesLines
* - Stage supportMartin Wilke2014-02-052-3/+1
| | | | Notes: svn path=/head/; revision=342655
* Add NO_STAGE all over the place in preparation for the staging support (cat: ↵Baptiste Daroussin2013-09-201-0/+1
| | | | | | | devel part 3) Notes: svn path=/head/; revision=327724
* - convert to the new perl5 frameworkAndrej Zverev2013-09-071-6/+3
| | | | | | | | | - trim Makefile header Approved by: portmgr (bapt@, blanket) Notes: svn path=/head/; revision=326639
* - Set default perl version for ports which currently usingAndrej Zverev2012-12-161-1/+0
| | | | | | | | | (5.x+ and x < 12) scheme. Approved by: bapt@ (portmgr@) Notes: svn path=/head/; revision=308985
* - Add TEST_DEPENDS to enable testingSteve Wills2012-02-151-0/+2
| | | | | | | | | PR: ports/165049 Submitted by: swills (myself) Approved by: portmgr (blanket) Notes: svn path=/head/; revision=291393
* - @comment cleanup in p5-* pkg-plistPhilip M. Gollucci2010-12-121-1/+0
| | | | Notes: svn path=/head/; revision=266099
* Recursively evaluate a BLOCK over a list of data structures (locallyPhilip M. Gollucci2010-12-074-0/+53
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. 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/ PR: ports/152629 Submitted by: Gea-Suan Lin <gslin at gslin.org> Notes: svn path=/head/; revision=265777