Moose:...Number(3pm)

πŸ“¦
version 0.16 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, this page is all about Moose::Autobox::Number β€” it's the Number role πŸ’… that's the whole name, that's the whole vibe.


🌸 VERSION 🌸

version 0.16 ✨ (yes she's got a number, she's literally the number role, iconic)


πŸ¦‹ DESCRIPTION πŸ¦‹

So what even is this? It's a role that describes a Numeric value. That's it. That's the assignment. She shows up, she describes numeric values, she leaves. main character energy fr fr πŸ’–


πŸŽ€ METHODS πŸŽ€

to

okay so this one takes another number as its argument, and it produces an array that ranges from the number the method got called on all the way to the number you handed it as the argument. 🫢

BUT β€” and this is the part that's giving spicy 🌢️ β€” in some situations this method intentionally behaves different from the range operator in perl. Intentional! She's not broken, she's making a choice. Periodt.

$foo = [ 5 .. 1 ]; # $foo is []

$foo = 5->to(1);   # $foo is [ 5, 4, 3, 2, 1 ]

Like… look at that. The range operator said "[], nothing to see here" and 5->to(1) said "bestie I'm giving you [ 5, 4, 3, 2, 1 ]" πŸ”₯ she counts down. Slay.

meta

...that's it. That's the whole entry. The original page lists meta and then just ✨ moves on ✨ with no description whatsoever. So I'm not gonna make anything up β€” she's there, she exists, she has no notes. πŸ˜­πŸ’€


🧚 SUPPORT 🧚

Got bugs? Bestie, we ALL got bugs. 🌈 Here's where to send them:

Come hang out, iykyk πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Stevan Little <stevan.little@iinteractive.com> β€” thank you for your service, king πŸ«‘πŸ’œ


This software is copyright (c) 2006 by Infinity Interactive, Inc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. πŸ“ (free software ate, no cap)


and that's the whole page bestie, go forth and autobox ur numbers πŸ¦‹βœ¨

perl v5.34.0 Β· 2022-06-15 Β· mwah, drink water, read ur manpages πŸ’…πŸŽ€

πŸ“¦ where this page comes from