PPI::To...hedWord(3)

πŸ’– PPI::Token::DashedWord πŸ’–

okay bestie, so this is the manual page for PPI::Token::DashedWord β€” a dashed bareword token, from the User Contributed Perl Documentation collection. yes the header is long, no we're not reading it out loud, moving on πŸ’…


✨ NAME ✨

PPI::Token::DashedWord β€” a dashed bareword token, fr fr πŸŽ€


🧬 INHERITANCE 🧬

so the whole family tree is giving royalty, look:

  PPI::Token::DashedWord
  isa PPI::Token
      isa PPI::Element

it inherits down the line, the way that lineage just keeps going πŸ’œ


πŸ“– DESCRIPTION πŸ“–

the "dashed bareword" token represents literal values like -foo. that's the whole vibe. a word with a dash in front, living its life πŸ¦‹

NOTE: this class is currently unused. like, not a single soul is using it right now 😭 every token that should be a PPI::Token::DashedWord is just a normal PPI::Token::Word instead. and honestly? that actually makes sense, because there really is nothing special about this class except that dashed words cannot be subroutine names or keywords. so as such, this class may be removed from PPI in the future. rip bestie πŸͺ¦ no cap.

πŸ› οΈ METHODS πŸ› οΈ

🌸 literal 🌸

returns the value of the dashed word as a string. and here's the tea β€” this differs from content because -Foo'Bar expands to -Foo::Bar. the apostrophe gets swapped out, periodt πŸ’…βœ¨


🫢 SUPPORT 🫢

see the support section in the main module. go check it out, it's iconic πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Adam Kennedy <adamk@cpan.org> β€” the main character who wrote this πŸ’–


Copyright 2001 - 2011 Adam Kennedy.

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. πŸ“œ


and that's the whole page bestie, you ate that 🌈 this was perl v5.42.0, dated 2026-01-17, and you understood every word of it, slay πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from