about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-02 19:32:42 +0000
committerEric Wong <e@80x24.org>2019-10-02 19:53:30 +0000
commitd07658376f6b05c85ca0763fb06a610a9211fb77 (patch)
tree2eb884c45d4879282bac24d40d801e9acb74d7a3
parent422cbeb718cf2499cd07c9399755d41aea65b1f8 (diff)
downloadpublic-inbox-d07658376f6b05c85ca0763fb06a610a9211fb77.tar.gz
It took me years to discover this change in Perl 5.6,
maybe other potential hackers are in the same boat.
-rw-r--r--HACKING8
1 files changed, 8 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index f7cb92e9..666d504e 100644
--- a/HACKING
+++ b/HACKING
@@ -50,3 +50,11 @@ requirements.
 
 See design_www.txt and design_notes.txt in the Documentation/
 directory for design decisions made during development.
+
+Perl notes
+----------
+
+* \w, \s, \d character classes all match Unicode characters;
+  so write out class ranges (e.g "[0-9]") if you only intend to
+  match ASCII.  Do not use the "/a" (ASCII) modifier, that requires
+  Perl 5.14 and we're only depending on 5.10.1 at the moment.