Chart:...::Range(3pm)
π Chart::Clicker::Data::Range π
okay bestie, so this is Chart::Clicker::Data::Range, a Perl module in the 3pm manual section, and it is literally just "a range of Data". That's the whole NAME vibe. Adding it to your use line is giving main character energy, no cap. π
β¨ VERSION β¨
version 2.90 β that's the one, that's the era we're in. π
πΈ SYNOPSIS πΈ
here's the little ritual you do to summon a Range into existence:
use Chart::Clicker::Data::Range;
my $range = Chart::Clicker::Data::Range->new({
lower => 1,
upper => 10
});
that's it. that's the whole thing. you hand it a lower and an upper and boom, you got a range, iconic. β¨
π¦ DESCRIPTION π¦
Chart::Clicker::Data::Range implements a range of values. like, a range of them. from low to high. that's the job, and it does the job. periodt. π
π ATTRIBUTES π
these are the lil settings you can set/get, aka the accessories of your Range. slay.
lowerβ Set/Get the lower bound for this Range. the floor, the basement, the "how low can you go" of it all. πΈmaxβ Set/Get the maximum value allowed for this Range. > heads up bestie: this one should only be set if you want to EXPLICITLY set the upper value. don't just casually set it, it's a whole statement. πminβ Set/Get the minimum value allowed for this Range. > and same energy here: only set this if you want to EXPLICITLY set the lower value. it's giving intent. πupperβ Set/Get the upper bound for this Range. the ceiling, the roof, the "we don't go past this" energy. β¨ticksβ The number of ticks to be displayed for this range. lil marks, very cute, very decorative. π
π₯ METHODS π₯
the actual moves. here's where the range does range things. π«Ά
π add
Adds the specified range to this one. The lower is reduced to that of the provided one if it is lower, and the upper is ADDED to this range's upper. yes, ADDED. not replaced. read that again bestie, it's lowkey unhinged but it's the truth fr fr. π
π combine
Combine this range with the specified one so that this range encompasses the values specified. For example, adding a range with an upper-lower of 1-10 with one of 5-20 will result in a combined range of 1-20. see? 1-10 π€ 5-20 β 1-20. they're an us now. π
π contains ($value)
Returns true if supplied value falls within this range (inclusive). Otherwise returns false. inclusive is the key word here β the edges count, everyone's invited, no gatekeeping at the boundary. π
π span
Returns the span of this range, or UPPER - LOWER. simple math, gorgeous result. β
π AUTHOR π
Cory G Watson <gphat@cpan.org> β legend behavior, honestly. π
πΈ COPYRIGHT AND LICENSE πΈ
This software is copyright (c) 2016 by Cory G Watson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, share the love, just keep the terms. π«Ά
and that's the whole page bestie β brought to you by perl v5.36.0, dated 2022-10-14, straight out of the Chart:...::Range(3pm) corner of the manual. go make some ranges, drink water, ily. πβ¨π¦
π¦ where this page comes from
- ubuntu noble: libchart-clicker-perl 2.90-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libchart-clicker-perl 2.90-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libchart-clicker-perl 2.90-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms