1PPIx::Regexp::Token::LiUtseerralC(o3n)tributed Perl DocuPmPeInxt:a:tRieognexp::Token::Literal(3)
2
3
4
6 PPIx::Regexp::Token::Literal - Represent a literal character
7
9 use PPIx::Regexp::Dumper;
10 PPIx::Regexp::Dumper->new( 'qr{foo}smx' )
11 ->print();
12
14 "PPIx::Regexp::Token::Literal" is a PPIx::Regexp::Token.
15
16 "PPIx::Regexp::Token::Literal" has no descendants.
17
19 This class represents a literal character, no matter how specified.
20
22 This class provides the following public methods. Methods not
23 documented here are private, and unsupported in the sense that the
24 author reserves the right to change or remove them without notice.
25
26 ordinal
27 print 'The ordinal of ', $token->content(),
28 ' is ', $token->ordinal(), "\n";
29
30 This method returns the ordinal of the literal if it can figure it out.
31 It is analogous to the "ord" built-in.
32
33 It will not attempt to determine the ordinal of a unicode name
34 ("\N{...}") unless charnames has been loaded, and supports the
35 vianame() function. Instead, it will return "undef". Users of Perl
36 5.6.2 and older may be out of luck here.
37
38 Unicode code points (e.g. "\N{U+abcd}") should work independently of
39 charnames, and just return the value of "abcd".
40
41 It will never attempt to return the ordinal of an octet ("\C{...}")
42 because I don't understand the syntax.
43
45 Support is by the author. Please file bug reports at
46 <http://rt.cpan.org>, or in electronic mail to the author.
47
49 Thomas R. Wyant, III wyant at cpan dot org
50
52 Copyright (C) 2009-2018 by Thomas R. Wyant, III
53
54 This program is free software; you can redistribute it and/or modify it
55 under the same terms as Perl 5.10.0. For more details, see the full
56 text of the licenses in the directory LICENSES.
57
58 This program is distributed in the hope that it will be useful, but
59 without any warranty; without even the implied warranty of
60 merchantability or fitness for a particular purpose.
61
62
63
64perl v5.28.0 2018-08-12 PPIx::Regexp::Token::Literal(3)