In perl.git, the branch blead has been updated <https://perl5.git.perl.org/perl.git/commitdiff/d3a1131a9f5192057ba3745eab6315cb4c8a9713?hp=361b6e563c00feb6d4adf1bd43689c04da3a3673>
- Log ----------------------------------------------------------------- commit d3a1131a9f5192057ba3745eab6315cb4c8a9713 Author: Karl Williamson <k...@cpan.org> Date: Tue Dec 26 17:20:38 2017 -0700 perlretut: Clarify metacharacters ----------------------------------------------------------------------- Summary of changes: pod/perlretut.pod | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pod/perlretut.pod b/pod/perlretut.pod index 2f7670eca6..3add259f79 100644 --- a/pod/perlretut.pod +++ b/pod/perlretut.pod @@ -170,10 +170,16 @@ always match at the earliest possible point in the string: With respect to character matching, there are a few more points you need to know about. First of all, not all characters can be used "as -is" in a match. Some characters, called I<metacharacters>, are reserved -for use in regexp notation. The metacharacters are +is" in a match. Some characters, called I<metacharacters>, are +generally reserved for use in regexp notation. The metacharacters are - {}[]()^$.|*+?-\ + {}[]()^$.|*+?-#\ + +This list is not as definitive as it may appear (or be claimed to be in +other documentation). For example, C<"#"> is a metacharacter only when +the C</x> pattern modifier (described below) is used, and both C<"}"> +and C<"]"> are metacharacters only when paired with opening C<"{"> or +C<"["> respectively; other gotchas apply. The significance of each of these will be explained in the rest of the tutorial, but for now, it is important only to know -- Perl5 Master Repository