Perl6::Take

Perl6::Take is a Perl module to gather/take in Perl 5.
Download

Perl6::Take Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Gaal Yahas
  • Publisher web site:
  • http://search.cpan.org/~gaal/Task-Smoke-0.16/lib/Task/Smoke.pm

Perl6::Take Tags


Perl6::Take Description

Perl6::Take is a Perl module to gather/take in Perl 5. Perl6::Take is a Perl module to gather/take in Perl 5.SYNOPSIS use Perl6::Take; my @foo = gather { take 5; };EXPORTgatherAccepts a block. take statements inside the dynamic scope of the block are used to accumulate a list, which is gathered as the return value of the block.takeAccumulates its argument (or list of arguments) on to the nearest gather in the dynamic scope. Arguments are evaluated in list context. The arguments may be passed on to a variable, but note that this assignment should usually be done in list context, as per usual context rules: $answer = take 42; # 1 ($answer) = take 42; # 42 Requirements: · Perl


Perl6::Take Related Software