List::ComprehensionsList::Comprehensions is a Perl module that allows for list comprehensions in Perl. | |
Download |
List::Comprehensions Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Jeremy Cortner
- Publisher web site:
- http://search.cpan.org/~ophiuci/List-Comprehensions-0.13/lib/List/Comprehensions.pm
List::Comprehensions Tags
List::Comprehensions Description
List::Comprehensions is a Perl module that allows for list comprehensions in Perl. List::Comprehensions is a Perl module that allows for list comprehensions in Perl.SYNOPSIS use List::Comprehensions; use warnings; my @res = (); @res = comp1 { } , , ; no warnings 'once'; @res = comp2 { } i => , j => , k => ; # if strict 'vars' is on, use lexicals. eg: use strict 'vars'; my ($i, $j, $k); @res = comp2 { } i => , j => , k => ; # each being less efficient but equivelant to @res = (); for $i ( 0..4 ) { for $j ( 0..4 ) { for $k ( 0..4 ) { push @res, ; } } } Requirements: · Perl
List::Comprehensions Related Software