1Crontab(3)            User Contributed Perl Documentation           Crontab(3)
2
3
4

NAME

6       Set::Crontab - Expand crontab(5)-style integer lists
7

SYNOPSIS

9       $s = Set::Crontab->new("1-9/3,>15,>30,!23", [0..30]);
10
11       if ($s->contains(3)) { ... }
12

DESCRIPTION

14       Set::Crontab parses crontab-style lists of integers and defines some
15       utility functions to make it easier to deal with them.
16
17   Syntax
18       Numbers, ranges, *, and step values all work exactly as described in
19       crontab(5). A few extensions to the standard syntax are described
20       below.
21
22       < and >
23           <N selects the elements smaller than N from the entire range, and
24           adds them to the set. >N does likewise for elements larger than N.
25
26       !   !N excludes N from the set. It applies to the other specified
27           range; otherwise it applies to the specified ranges (i.e. "!3" with
28           a range of "1-10" corresponds to "1-2,4-10", but ">3,!7" in the
29           same range means "4-6,8-10").
30
31   Functions
32       new($spec, [@range])
33           Creates a new Set::Crontab object and returns a reference to it.
34
35       contains($num)
36           Returns true if $num exists in the set.
37
38       list()
39           Returns the expanded list corresponding to the set. Elements are in
40           ascending order.
41
42       The functions described above croak if they are called with incorrect
43       arguments.
44

SEE ALSO

46       crontab(5)
47

AUTHOR

49       Abhijit Menon-Sen <ams@toroid.org>
50
51       Copyright 2001 Abhijit Menon-Sen <ams@toroid.org>
52
53       This module is free software; you can redistribute it and/or modify it
54       under the same terms as Perl itself.
55
56
57
58perl v5.30.0                      2019-07-26                        Crontab(3)
Impressum