diff options
-rw-r--r-- | pod/perldiag.pod | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index d18279ff56..f6861741b8 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1449,13 +1449,13 @@ will match. This may be counterintuitive at times, as both these fail: - chr(0x110000) =~ \p{ASCII_Hex_Digit=True} # Fails. - chr(0x110000) =~ \p{ASCII_Hex_Digit=False} # Also fails! + chr(0x110000) =~ /\p{ASCII_Hex_Digit=True}/ # Fails. + chr(0x110000) =~ /\p{ASCII_Hex_Digit=False}/ # Also fails! and both these succeed: - chr(0x110000) =~ \P{ASCII_Hex_Digit=True} # Succeeds. - chr(0x110000) =~ \P{ASCII_Hex_Digit=False} # Also succeeds! + chr(0x110000) =~ /\P{ASCII_Hex_Digit=True}/ # Succeeds. + chr(0x110000) =~ /\P{ASCII_Hex_Digit=False}/ # Also succeeds! =item %s: Command not found |