PPI::Token::DashedWord(3pm)

PPI::Token::DashedWord3pm

A dashed bareword token

Inheritance

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

Overview

The "dashed bareword" token represents literal values like "-foo".

NOTE: this class is currently unused. All tokens that should be PPI::Token::DashedWords are just normal PPI::Token::Word instead. That actually makes sense, since there really is nothing special about this class except that dashed words cannot be subroutine names or keywords. As such, this class may be removed from PPI in the future.

Methods

literal

Returns the value of the dashed word as a string. This differs from "content" because "-Foo'Bar" expands to "-Foo::Bar".

Support

See the support section in the main module.

Releases

11 releases since Debian 4.0 (Etch); the text changed 10 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13
  11. Arch

Author

Adam Kennedy <[email protected]>

From perl-ppi 1.291-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.