PPIx::Utils::Language(3pm)

PPIx::Utils::Language3pm

Utility functions for ppi related to the perl language

Usage

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

Overview

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

Functions

All functions can be imported by name, or with the tag ":all".

precedence_of

    my $precedence = precedence_of($element);

Given a PPI::Token::Operator or a string, returns the precedence of the operator, where 1 is the highest precedence. Returns undef if the precedence can't be determined (which is usually because it is not an operator).

symbol_without_sigil

    my $name = symbol_without_sigil($symbol);

Returns the name of the specified symbol with any sigil at the front. The parameter can be a vanilla Perl string or a PPI::Element.

Releases

3 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12–13
  2. Arch

Bugs

Report any issues on the public bugtracker.

Author

Dan Book <[email protected]>

Code originally from Perl::Critic::Utils by Jeffrey Ryan Thalhammer <[email protected]> and Perl::Critic::Utils::Perl by Elliot Shank <[email protected]>

From perl-ppix-utils 0.004-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.