logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Adam Kennedy <adamk@cpan.org>

Description

       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.

Inheritance

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

Methods

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

Name

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

Support

       See the support section in the main module.

See Also