1Math::NumSeq::File(3) User Contributed Perl DocumentationMath::NumSeq::File(3)
2
3
4

NAME

6       Math::NumSeq::File -- sequence read from a file
7

SYNOPSIS

9        use Math::NumSeq::File;
10        my $seq = Math::NumSeq::File->new (filename => 'foo.txt');
11        my ($i, $value) = $seq->next;
12

DESCRIPTION

14       A sequence of values read from a file.  This is designed to read a file
15       of numbers in NumSeq style.
16
17       The intention is to be flexible about the file format and to auto-
18       detect as far as possible.  Currently the only format is plain text,
19       either a single value per line, or a pair i and value.
20
21           123                   # value per line
22           456
23
24           1  123                # i and value per line
25           2  456
26

FUNCTIONS

28       See "FUNCTIONS" in Math::NumSeq for behaviour common to all sequence
29       classes.
30
31       "$seq = Math::NumSeq::File->new (filename => $filename)"
32           Create and return a new sequence object to read $filename.
33

SEE ALSO

35       Math::NumSeq
36

HOME PAGE

38       <http://user42.tuxfamily.org/math-numseq/index.html>
39

LICENSE

41       Copyright 2011, 2012, 2013, 2014, 2016, 2019, 2020 Kevin Ryde
42
43       Math-NumSeq is free software; you can redistribute it and/or modify it
44       under the terms of the GNU General Public License as published by the
45       Free Software Foundation; either version 3, or (at your option) any
46       later version.
47
48       Math-NumSeq is distributed in the hope that it will be useful, but
49       WITHOUT ANY WARRANTY; without even the implied warranty of
50       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
51       General Public License for more details.
52
53       You should have received a copy of the GNU General Public License along
54       with Math-NumSeq.  If not, see <http://www.gnu.org/licenses/>.
55
56
57
58perl v5.38.0                      2023-07-20             Math::NumSeq::File(3)
Impressum