Permalink
Browse files

Fixed a typo reported by Bryan Summersett.

  • Loading branch information...
1 parent 673f82a commit 552051b6a9b0ea5bfcfe4505efa4d7b17e52129c @chromatic committed May 6, 2010
Showing with 4 additions and 1 deletion.
  1. +3 −0 CREDITS
  2. +1 −1 sections/regular_expressions.pod
View
@@ -38,3 +38,6 @@ E: moritz@faui2k3.org
N: Carl Mäsak
E: cmasak@gmail.com
+
+N: Bryan Summersett
+E: bsummersett@gmail.com
@@ -337,7 +337,7 @@ Given a string, C<$contact_info>, which contains contact information, you can
apply the C<$phone_number> regular expression and I<capture> any matches into a
variable with I<named captures>:
- if ($contact_info =~ /(?<phone>$phone_number))
+ if ($contact_info =~ /(?<phone>$phone_number)/)
{
say "Found a number $+{phone}";
}

0 comments on commit 552051b

Please sign in to comment.