PPI::To...:Binary(3)

πŸ’– PPI::Token::Number::Binary πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation page for PPI::Token::Number::Binary ✨ β€” yes that's the whole name, it's a mouthful, we love her anyway 🫢


🌈 NAME 🌈

PPI::Token::Number::Binary β€” the token class that handles binary numbers, aka base-2, aka the 1s and 0s life πŸ’…


✨ SYNOPSIS ✨

$n = 0b1110011;  # binary integer

that's it. that's the vibe. 0b and go πŸŽ€


πŸ¦‹ INHERITANCE πŸ¦‹

so she's got main character energy and a whole family tree, look:

PPI::Token::Number::Binary
isa PPI::Token::Number
    isa PPI::Token
        isa PPI::Element

three generations of iconic ancestry, no cap πŸ‘‘


🌸 DESCRIPTION 🌸

the PPI::Token::Number::Binary class is literally the token class for stuff that represents base-2 numbers. that's the whole job. she ate and left no crumbs πŸ“


πŸ’… METHODS πŸ’…

πŸ’œ base

Returns the base for the number: 2. yes. two. it's binary. iykyk πŸ’€

πŸ’œ literal

Return the numeric value of this token. that's it, that's the method ✨


🫢 SUPPORT 🫢

ngl if you need help, go see the support section in the main module. they got you bestie πŸ’–


πŸ‘‘ AUTHOR πŸ‘‘

Chris Dolan <cdolan@cpan.org> β€” legend behaviour, honestly 🌟


Copyright 2006 Chris Dolan. πŸŽ€

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module. go read it fr fr πŸ“–


and that's the whole page babes πŸ’– this lil doc came from perl v5.42.0, dated 2026-01-17 β€” slay, periodt βœ¨πŸŒˆπŸ’…

πŸ“¦ where this page comes from