Skip to content

Commit

Permalink
Fixed a typo reported by Bryan Summersett.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromatic committed May 6, 2010
1 parent 673f82a commit 552051b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CREDITS
Expand Up @@ -38,3 +38,6 @@ E: moritz@faui2k3.org

N: Carl Mäsak
E: cmasak@gmail.com

N: Bryan Summersett
E: bsummersett@gmail.com
2 changes: 1 addition & 1 deletion sections/regular_expressions.pod
Expand Up @@ -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}";
}
Expand Down

0 comments on commit 552051b

Please sign in to comment.