1Perl::Critic::Utils::PeUrsle(r3)Contributed Perl DocumenPteartli:o:nCritic::Utils::Perl(3)
2
3
4
6 Perl::Critic::Utils::Perl - Utility functions for dealing with Perl
7 language issues.
8
10 use Perl::Critic::Utils::Perl qw< :all >;
11
12 my $name = symbol_without_sigil('$foo'); # $name is "foo".
13
15 This handles various issues with Perl, the language, that aren't
16 necessarily PPI related.
17
19 This is considered to be a public module. Any changes to its interface
20 will go through a deprecation cycle.
21
23 "symbol_without_sigil( $symbol )"
24 Returns the name of the specified symbol with any sigil at the
25 front. The parameter can be a vanilla Perl string or a
26 PPI::Element.
27
29 Elliot Shank <perl@galumph.com>
30
32 Copyright (c) 2007-2011 Elliot Shank.
33
34 This program is free software; you can redistribute it and/or modify it
35 under the same terms as Perl itself. The full text of this license can
36 be found in the LICENSE file included with this module.
37
38
39
40perl v5.32.0 2020-07-28 Perl::Critic::Utils::Perl(3)