1PPI::Token::DashedWord(U3s)er Contributed Perl DocumentatPiPoIn::Token::DashedWord(3)
2
3
4

NAME

6       PPI::Token::DashedWord - A dashed bareword token
7

INHERITANCE

9         PPI::Token::DashedWord
10         isa PPI::Token
11             isa PPI::Element
12

DESCRIPTION

14       The "dashed bareword" token represents literal values like "-foo".
15
16       NOTE: this class is currently unused.  All tokens that should be
17       PPI::Token::DashedWords are just normal PPI::Token::Word instead.  That
18       actually makes sense, since there really is nothing special about this
19       class except that dashed words cannot be subroutine names or keywords.
20       As such, this class may be removed from PPI in the future.
21

METHODS

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

SUPPORT

28       See the support section in the main module.
29

AUTHOR

31       Adam Kennedy <adamk@cpan.org>
32
34       Copyright 2001 - 2011 Adam Kennedy.
35
36       This program is free software; you can redistribute it and/or modify it
37       under the same terms as Perl itself.
38
39       The full text of the license can be found in the LICENSE file included
40       with this module.
41
42
43
44perl v5.36.0                      2022-07-22         PPI::Token::DashedWord(3)
Impressum