1PPIx::Regexp::Token::DeUlsiemritCeorn(t3r)ibuted Perl DoPcPuImxe:n:tRaetgieoxnp::Token::Delimiter(3)
2
3
4
6 PPIx::Regexp::Token::Delimiter - Represent the delimiters of the
7 regular expression
8
10 use PPIx::Regexp::Dumper;
11 PPIx::Regexp::Dumper->new( 'qr{foo}smx' )
12 ->print();
13
15 "PPIx::Regexp::Token::Delimiter" is a PPIx::Regexp::Token::Structure.
16
17 "PPIx::Regexp::Token::Delimiter" has no descendants.
18
20 This token represents the delimiters of the regular expression. Since
21 the tokenizer has to figure out where these are anyway, this class is
22 used to give the lexer a hint about what is going on.
23
25 This class provides no public methods beyond those provided by its
26 superclass.
27
28 perl_version_introduced
29 Experimentation with weird delimiters shows that they did not actually
30 work until Perl 5.8.3, so we return '5.008003' for such delimiters.
31
32 perl_version_removed
33 Perl 5.29.0 made fatal the use of non-standalone graphemes as regular
34 expression delimiters. Because non-characters and permanently
35 unassigned code points are still allowed per perldeprecation, I take
36 this to mean characters that match "/\p{Mark}/" (i.e. combining
37 diacritical marks). But this regular expression does not compile under
38 Perl 5.6.
39
40 So:
41
42 This method returns '5.029' for such delimiters provided the requisite
43 regular expression compiles. Otherwise it return "undef".
44
46 Support is by the author. Please file bug reports at
47 <https://rt.cpan.org/Public/Dist/Display.html?Name=PPIx-Regexp>,
48 <https://github.com/trwyant/perl-PPIx-Regexp/issues>, or in electronic
49 mail to the author.
50
52 Thomas R. Wyant, III wyant at cpan dot org
53
55 Copyright (C) 2009-2022 by Thomas R. Wyant, III
56
57 This program is free software; you can redistribute it and/or modify it
58 under the same terms as Perl 5.10.0. For more details, see the full
59 text of the licenses in the directory LICENSES.
60
61 This program is distributed in the hope that it will be useful, but
62 without any warranty; without even the implied warranty of
63 merchantability or fitness for a particular purpose.
64
65
66
67perl v5.36.0 2022-07-22 PPIx::Regexp::Token::Delimiter(3)