This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlretut: "-" is sometimes a metacharacter
authorKarl Williamson <khw@cpan.org>
Fri, 17 Feb 2017 18:54:07 +0000 (11:54 -0700)
committerKarl Williamson <khw@cpan.org>
Mon, 20 Feb 2017 16:08:55 +0000 (09:08 -0700)
pod/perlretut.pod

index 4e6a120..9c1671e 100644 (file)
@@ -173,7 +173,7 @@ 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
 
-    {}[]()^$.|*+?\
+    {}[]()^$.|*+?-\
 
 The significance of each of these will be explained
 in the rest of the tutorial, but for now, it is important only to know