Implements the Perl 6 'gather/take' control structure in Perl 5
https://metacpan.org/release/Syntax-Keyword-Gather
Perl 6 provides a new control structure -- 'gather' -- that allows lists to be constructed procedurally, without the need for a temporary variable. Within the block/closure controlled by a 'gather' any call to 'take' pushes that call's argument list to an implicitly created array. 'take' returns the number of elements it took. This module implements that control structure.
At the end of the block's execution, the 'gather' returns the list of values stored in the array (in a list context) or a reference to the array (in a scalar context).
- Sources inherited from project devel:languages:perl
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:Tomcat42/perl-Syntax-Keyword-Gather && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
Syntax-Keyword-Gather-1.003002.tar.gz | 0000014183 13.9 KB | |
cpanspec.yml | 0000000922 922 Bytes | |
perl-Syntax-Keyword-Gather.changes | 0000000196 196 Bytes | |
perl-Syntax-Keyword-Gather.spec | 0000002335 2.28 KB |
Latest Revision
Dirk Stoecker (dstoecker)
accepted
request 914775
from
Dirk Stoecker (dstoecker)
(revision 1)
For perl-Task-Kensho-WebDev update
Comments 0