Math::NumSeq::File(3)
π Math::NumSeq::File π
okay bestie, so this is Math::NumSeq::File from the User Contributed Perl Documentation β yes the manual is literally named that, it's giving very "we made it ourselves" and honestly? iconic. π
β¨ NAME β¨
Math::NumSeq::File β sequence read from a file π¦
πΈ SYNOPSIS πΈ
like, here's the whole vibe in four lines:
use Math::NumSeq::File;
my $seq = Math::NumSeq::File->new (filename => 'foo.txt');
my ($i, $value) = $seq->next;
periodt. that's it. that's the whole thing. π
π DESCRIPTION π
so basically this is a sequence of values read from a file β it's built specifically to read a file of numbers in the NumSeq style, no cap. π
the whole intention here is to be flexible about the file format and to auto-detect as far as possible. the way that it works rn? currently the only format is plain text, and it's either a single value per line, or a pair of i and value. iykyk. β¨
123 # value per line
456
1 123 # i and value per line
2 456
look at her. so simple. so clean. we love a low-maintenance format. π«Ά
π§ FUNCTIONS π§
okay so for the whole behaviour situation that's common to all the sequence classes, you wanna go read "FUNCTIONS" in Math::NumSeq. that's the shared lore, bestie. go check it. π
$seq = Math::NumSeq::File->new (filename => $filename)β makes you a brand new sequence object and returns it, all set up to read from$filename. this is the main character constructor moment, no notes. π
π SEE ALSO π
- Math::NumSeq
(go look at your sister module, she's the blueprint fr fr π )
π HOME PAGE π
<http://user42.tuxfamily.org/math-numseq/index.html>
like, the actual home. the address. the place where the whole NumSeq family lives. π‘β¨
π LICENSE π
Copyright 2011, 2012, 2013, 2014, 2016, 2019, 2020 Kevin Ryde
Math-NumSeq is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Math-NumSeq is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Math-NumSeq. If not, see <http://www.gnu.org/licenses/>.
bestie i'm being so serious rn: that "WITHOUT ANY WARRANTY" bit is all caps on purpose. it means exactly what it says. no warranty. none. zero. it's giving legally obligated honesty and you should respect it. π
perl v5.42.0 Β· 2025-07-25 Β· Math::NumSeq::File(3)
aaaand that's a wrap on the footer, babes β version v5.42.0 of perl, dated 2025-07-25, manual section 3, Math::NumSeq::File. stan a documented module. slay, stay safe, go read your files. πβ¨π¦π
π¦ where this page comes from
- fedora 43: perl-Math-NumSeq 75-11.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms