PPI::To...r::Octal(3)

πŸ’œ PPI::Token::Number::Octal β€” bestie edition

okay so you're looking at PPI::To...r::Octal(3), which is the manual page for PPI::Token::Number::Octal, and honestly? it's short, it's sweet, and it's about to make base-8 numbers make sense. let's go ✨


🌸 NAME 🌸

PPI::Token::Number::Octal β€” Token class for a binary number

okay bestie i KNOW. the name says octal and the one-liner says "binary number". that is what the page says, so that is what i'm telling you. no cap. 🫢

πŸŽ€ SYNOPSIS πŸŽ€

  $n = 0777;      # octal integer

that's it. that's the vibe. a leading zero and suddenly you're in base 8, living your best life πŸ’…


πŸ¦‹ INHERITANCE πŸ¦‹

the family tree, and yes she comes from a long line of icons:

  PPI::Token::Number::Octal
  isa PPI::Token::Number
      isa PPI::Token
          isa PPI::Element

so PPI::Token::Number::Octal isa PPI::Token::Number, which isa PPI::Token, which isa PPI::Element. generational excellence, fr fr πŸ‘‘


✨ DESCRIPTION ✨

so the PPI::Token::Number::Octal class is used for tokens that represent base-8 numbers. that's the whole assignment. she shows up when something in your Perl source is chillin' in octal, and she holds that token's whole personality. 🌈


πŸ’– METHODS πŸ’–

base

Returns the base for the number: 8.

yes queen, she knows what she is. eight. base eight. not base ten, not base two. eight. 🎯

literal

Return the numeric value of this token.

so if you want the actual number hiding inside the token, this is your girl β€” she hands you the numeric value back. πŸ“


🫢 SUPPORT 🫢

See the support section in the main module.

(that's the main module's problem, not ours β€” go check over there bestie 😭)


πŸ‘‘ AUTHOR πŸ‘‘

Chris Dolan <cdolan@cpan.org>

icon behavior. we stan. πŸ’–


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.

so basically: free software, same terms as Perl itself, and if you want the receipts they're in the LICENSE file that ships with the module. read it, it's giving responsible main character energy πŸ“šβœ¨

aaaand that's the whole page, bestie! this was perl v5.42.0, dated 2026-01-17, straight from the PPI::To...r::Octal(3) manpage β€” go forth and count in eights, you absolute legend πŸ’…πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from