1PPIx::Utils::Language(3U)ser Contributed Perl DocumentatiPoPnIx::Utils::Language(3)
2
3
4

NAME

6       PPIx::Utils::Language - Utility functions for PPI related to the Perl
7       language
8

SYNOPSIS

10           use PPIx::Utils::Language ':all';
11

DESCRIPTION

13       This package is a component of PPIx::Utils that contains functions
14       related to aspects of the Perl language.
15

FUNCTIONS

17       All functions can be imported by name, or with the tag ":all".
18
19   precedence_of
20           my $precedence = precedence_of($element);
21
22       Given a PPI::Token::Operator or a string, returns the precedence of the
23       operator, where 1 is the highest precedence.  Returns undef if the
24       precedence can't be determined (which is usually because it is not an
25       operator).
26
27   symbol_without_sigil
28           my $name = symbol_without_sigil($symbol);
29
30       Returns the name of the specified symbol with any sigil at the front.
31       The parameter can be a vanilla Perl string or a PPI::Element.
32

BUGS

34       Report any issues on the public bugtracker.
35

AUTHOR

37       Dan Book <dbook@cpan.org>
38
39       Code originally from Perl::Critic::Utils by Jeffrey Ryan Thalhammer
40       <jeff@imaginative-software.com> and Perl::Critic::Utils::Perl by Elliot
41       Shank <perl@galumph.com>
42
44       This software is copyright (c) 2005-2011 Imaginative Software Systems,
45       2007-2011 Elliot Shank, 2017 Dan Book.
46
47       This is free software; you can redistribute it and/or modify it under
48       the same terms as the Perl 5 programming language system itself.
49

SEE ALSO

51       Perl::Critic::Utils, Perl::Critic::Utils::Perl
52
53
54
55perl v5.34.0                      2022-01-21          PPIx::Utils::Language(3)
Impressum