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 aPPI::Token::DashedWordis just a normalPPI::Token::Wordinstead. 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 Β©οΈ
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
- fedora 44: perl-PPI 1.284-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms