In perl.git, the branch blead has been updated <https://perl5.git.perl.org/perl.git/commitdiff/5a9c3bf448373ee0812df85d750f6234ee11c9c4?hp=5ffd609608e2a003d9a229e7cd0ba1f883c53ade>
- Log ----------------------------------------------------------------- commit 5a9c3bf448373ee0812df85d750f6234ee11c9c4 Author: Zefram <[email protected]> Date: Thu Nov 2 19:29:33 2017 +0000 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]. ----------------------------------------------------------------------- Summary of changes: pod/perlop.pod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pod/perlop.pod b/pod/perlop.pod index 410085ffbc..b3f77d62c9 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: -- Perl5 Master Repository
