Math::N...:Beastly(3)
π Math::NumSeq::Beastly β the perl manual page, bestie edition π
okay so. this is the manual page for Math::NumSeq::Beastly, from the User Contributed Perl Documentation. yes that's the real name, yes it got abbreviated to Math::N...:Beastly(3) by whoever names these things, and yes we're gonna read the whole thing together. grab a snack. π
β¨ NAME β¨
Math::NumSeq::Beastly β numbers containing digits "666"
it's giving ominous. it's giving spooky. it's giving... a sequence generator. π
π SYNOPSIS π
the vibe check, in code form:
use Math::NumSeq::Beastly;
my $seq = Math::NumSeq::Beastly->new;
my ($i, $value) = $seq->next;
that's it. that's the whole entry point. three lines and you're in the beastly business. π¦
π₯ DESCRIPTION π₯
so this sequence is the beastly numbers β and no, bestie, that's not a personality trait, that's a math term. these are the numbers that have "666" somewhere in their digits. anywhere. not just at the start, not just at the end. somewhere.
the default is decimal, but lowkey you can hand it a radix if you're feeling spicy. π
here's how the numbers start:
666, 1666, 2666, 3666, 4666, 5666,
6660, 6661, 6662, ..., 6669,
7666, 8666, 9666,
etc
see how it does that little 6660 through 6669 run in the middle? iconic. no notes. it ate. β¨
π FUNCTIONS π
psst β for the behaviour that every sequence class shares, go check out "FUNCTIONS" in Math::NumSeq. that's the common ground. what's below is the Beastly-specific stuff.
$seq = Math::NumSeq::Beastly->new ()$seq = Math::NumSeq::Beastly->new (radix => $r)
create and return a brand new sequence object. that's it, that's the job. π
there's an optional radix parameter, and it does exactly what you think β it picks a base other than decimal. BUT. and this is the important part, bestie, pay attention: if radix is 6 or less, there's no "6" digits at all, and the sequence has no values. like, zero. empty. the whole thing just gives up. so don't come crying to me when you pass radix => 6 and get nothing back. π«Ά
$bool = $seq->pred ($value)
returns true if $value has "666" in its digits β and it checks in whichever "radix" you requested, not just decimal. so yeah, the beastliness is radix-dependent. main character energy. π
π SEE ALSO π
- Math::NumSeq
- Math::NumSeq::Repdigits
go read those too, they're the friends of the family. π
πΈ HOME PAGE πΈ
<http://user42.tuxfamily.org/math-numseq/index.html>
π LICENSE π
Copyright 2010, 2011, 2012, 2013, 2014, 2016, 2017, 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/>.
fr fr, that warranty bit is not a joke. no promises were made. π
and that's the whole page, bestie!! π this was perl v5.42.0, dated 2025-07-25, and the page itself is Math::N...:Beastly(3). go forth and generate numbers with 666 in them. slay. π
β¨π¦
π¦ 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