From 5a9c3bf448373ee0812df85d750f6234ee11c9c4 Mon Sep 17 00:00:00 2001 From: Zefram Date: Thu, 2 Nov 2017 19:29:33 +0000 Subject: [PATCH] document qw's whitespace rules qw only splits on ASCII whitespace, like primary tokenisation, but nowadays unlike the split() formulation with which it's documented. Document this additional difference from split(). Fixes [perl #132272]. --- pod/perlop.pod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pod/perlop.pod b/pod/perlop.pod index 410085f..b3f77d6 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -2346,7 +2346,8 @@ equivalent to: split(" ", q/STRING/); -the differences being that it generates a real list at compile time, and +the differences being that it only splits on ASCII whitespace, +generates a real list at compile time, and in scalar context it returns the last element in the list. So this expression: -- 1.8.3.1