Debian Codegraph @

README

raw
1 List::Maker version 0.005
2
3 The List::Maker module hijacks Perl's built-in file globbing syntax
4 ("< *.pl >" and "glob '*.pl'") and retargets it at list creation.
5
6 The rationale is simple: most people rarely if ever glob a set of
7 files, but they have to create lists in almost every program they
8 write. So the list construction syntax should be easier than the
9 file-name expansion syntax.
10
11 use List::Maker;
12
13 @list = <1..10>; # (1,2,3,4,5,6,7,8,9,10)
14 @list = <10..1>; # (10,9,8,7,6,5,4,3,2,1)
15
16 @list = <1,3,..10> # (1,3,5,7,9)
17 @list = <1..10 x 2> # (1,3,5,7,9)
18
19 @list = <0..10 : prime N>; # (2,3,5,7)
20 @list = <1,3,..30 : /7/> # (7,17,27)
21
22 @words = < a list of words >; # ('a', 'list', 'of', 'words')
23 @words = < 'a list' "of words" >; # ('a list', 'of words')
24
25
26 INSTALLATION
27
28 To install this module, run the following commands:
29
30 perl Makefile.PL
31 make
32 make test
33 make install
34
35
36 Alternatively, to install with Module::Build, you can use the
37 following commands:
38
39 perl Build.PL
40 ./Build
41 ./Build test
42 ./Build install
43
44
45
46 DEPENDENCIES
47
48 None.
49
50
51 COPYRIGHT AND LICENCE
52
53 Copyright (C) 2005, Damian Conway
54
55 This library is free software; you can redistribute it and/or modify
56 it under the same terms as Perl itself.