List::MakerList::Maker is a Perl module that can generate more sophisticated lists than just $a..$b. | |
Download |
List::Maker Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Damian Conway
- Publisher web site:
- http://search.cpan.org/~dconway/
List::Maker Tags
List::Maker Description
List::Maker is a Perl module that can generate more sophisticated lists than just $a..$b. List::Maker is a Perl module that can generate more sophisticated lists than just $a..$b.SYNOPSIS use List::Maker; @list = < 1..10 >; # (1,2,3,4,5,6,7,8,9,10) @list = < 10..1 >; # (10,9,8,7,6,5,4,3,2,1) @list = < 1,3,..10 > # (1,3,5,7,9) @list = < 1..10 x 2 > # (1,3,5,7,9) @list = < 0..10 : prime N >; # (2,3,5,7) @list = < 1,3,..30 : /7/ > # (7,17,27) @words = < a list of words >; # ('a', 'list', 'of', 'words') @words = < 'a list' "of words" >; # ('a list', 'of words')The List::Maker module hijacks Perl's built-in file globbing syntax (< *.pl > and glob '*.pl') and retargets it at list creation.The rationale is simple: most people rarely if ever glob a set of files, but they have to create lists in almost every program they write. So the list construction syntax should be easier than the filename expansion syntax. Requirements: · Perl
List::Maker Related Software