Text::...:Number(3pm)

πŸ“¦
version 0.31 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Text::PDF::Number β€” it's giving Numbers in PDF πŸ’– and it inherits from Text::PDF::String, so it's literally pulling up with the whole String family tree behind it, periodt.

So if you're in the Text::PDF universe and you need a thing that holds a number, this is your girl. πŸŽ€


πŸ¦‹ METHODS πŸ¦‹

Two methods. That's it. Two. We love a low-maintenance icon. πŸ‘‘

$n->convert($str) 🌸

Converts a string from PDF to internal.

And by "converts" … bestie, it does nothing. Like, absolutely nothing. Zero. It just sits there, vibing. πŸ§˜β€β™€οΈ The string comes in, the string stays exactly how it is, and honestly? No cap, that's the whole job. Not every method needs to be the main character.

$n->as_pdf πŸ”₯

Converts a number to PDF format.

That's the one. That's the method that actually does the thing β€” takes your number and hands it back in its PDF-fitting outfit so it can go out into the wild. ✨


Heads up bestie: convert is intentionally a no-op here, so don't be out here debugging it wondering why nothing's changing. It's not broken, it's just built different. πŸ’…

And that's the whole page, fr fr 🫢 This little cutie lives in the perl v5.36.0 docs, dated 2022-10-22, under the Text::...:Number(3pm) page name. Go forth and convert numbers, you absolute legend. 🌈⭐

πŸ“¦ where this page comes from