develooper Front page | perl.perl5.porters | Postings from March 2019

[perl #133956] Tweaks to pod/perldelta.pod: wrapped =head2;variable-length lookbehind examples

Thread Previous
From:
Tom Wyant
Date:
March 25, 2019 14:49
Subject:
[perl #133956] Tweaks to pod/perldelta.pod: wrapped =head2;variable-length lookbehind examples
Message ID:
rt-4.0.24-4090-1553525378-658.133956-75-0@perl.org
# New Ticket Created by  Tom Wyant 
# Please include the string:  [perl #133956]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=133956 >


This is a bug report for perl from wyant@cpan.org,
generated with the help of perlbug 1.41 running under perl 5.29.9.


-----------------------------------------------------------------
[Please describe your issue here]

The Perl 5.29.9 pod/perldelta.pod has a couple minor issues.


* It appears that some of the longer =head2 lines were inadvertently wrapped.


* It is not clear (to me at least) that the lookbehind examples under
"Varable length lookbehind ..." are in fact variable length.


The appended patch attempts to address both issues. The first was done
by simply joining lines where it looked to me like they should be joined.
The second was done by replacing, eg. (?<=foo) with (?<=foo?).

The patch is against the 5.29.9 release.


--- pod/perldelta.old 2019-03-20 14:29:07.000000000 -0400
+++ pod/perldelta.pod 2019-03-25 10:38:53.000000000 -0400
@@ -14,8 +14,7 @@

=head1 Core Enhancements

-=head2 Wildcards in Unicode property value specifications are now
-partially supported
+=head2 Wildcards in Unicode property value specifications are now partially supported

You can now do something like this in a regular expression pattern

@@ -43,8 +42,7 @@
Because of a change in Unicode release cycles, Perl jumps from Unicode
10.0 in Perl 5.28 to Unicode 12.0 in Perl 5.30.

-=head2 It is now possible to compile perl to always use thread-safe
-locale operations.
+=head2 It is now possible to compile perl to always use thread-safe locale operations.

Previously, these calls were only used when the perl was compiled to be
multi-threaded. To always enable them, add
@@ -56,10 +54,9 @@

=head1 Security

-=head2 Variable length lookbehind in regular expression pattern matching
-is now experimentally supported
+=head2 Variable length lookbehind in regular expression pattern matching is now experimentally supported

-Using a lookbehind assertion (like C<(?<=foo)> or C<(?<!bar)> previously
+Using a lookbehind assertion (like C<(?<=foo?)> or C<(?<!ba{1,9}r)> previously
would generate an error and refuse to compile. Now it compiles (if the
maximum lookbehind is at most 255 characters), but raises a warning in
the new C<experimental::vlb> warnings category. This is to caution you
@@ -76,8 +73,7 @@
malformed UTF-8. This protects agains potential security threats. This
is considered a bug fix as well ([perl #131642]).

-=head2 Any set of digits in the Common script are legal in a script run
-of another script
+=head2 Any set of digits in the Common script are legal in a script run of another script

There are several sets of digits in the Common script. C<[0-9]> is the
most familiar. But there are also C<[\x{FF10}-\x{FF19}]> (FULLWIDTH

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=docs
severity=low
---
Site configuration information for perl 5.29.9:

Configured by tom at Fri Mar 22 11:53:02 EDT 2019.

Summary of my perl5 (revision 5 version 29 subversion 9) configuration:

Platform:
osname=darwin
osvers=18.2.0
archname=darwin-2level
uname='darwin samwise.local 18.2.0 darwin kernel version 18.2.0: thu dec 20 20:46:53 pst 2018; root:xnu-4903.241.1~1release_x86_64 x86_64 '
config_args='-Dprefix=/trw/local/perl/5.29.9 -Dcf_email=wyant@cpan.org -Uinstallusrbinperl -d -Dusedevel -Uversiononly'
hint=recommended
useposix=true
d_sigaction=define
useithreads=undef
usemultiplicity=undef
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
bincompat5005=undef
Compiler:
cc='cc'
ccflags ='-fno-common -DPERL_DARWIN -mmacosx-version-min=10.14 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/opt/local/include -DPERL_USE_SAFE_PUTENV'
optimize='-O3'
cppflags='-fno-common -DPERL_DARWIN -mmacosx-version-min=10.14 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/opt/local/include'
ccversion=''
gccversion='4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='cc'
ldflags =' -mmacosx-version-min=10.14 -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib'
libpth=/usr/local/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /usr/lib /opt/local/lib
libs=-lpthread -lgdbm -ldbm -ldl -lm -lutil -lc
perllibs=-lpthread -ldl -lm -lutil -lc
libc=
so=dylib
useshrplib=false
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=bundle
d_dlsymun=undef
ccdlflags=' '
cccdlflags=' '
lddlflags=' -mmacosx-version-min=10.14 -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector-strong'


---
@INC for perl 5.29.9:
/trw/local/perl/5.29.9/lib/site_perl/5.29.9/darwin-2level
/trw/local/perl/5.29.9/lib/site_perl/5.29.9
/trw/local/perl/5.29.9/lib/5.29.9/darwin-2level
/trw/local/perl/5.29.9/lib/5.29.9

---
Environment for perl 5.29.9:
DYLD_LIBRARY_PATH (unset)
HOME=/Users/tom
LANG=en_US.UTF-8
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/trw/local/perl/5.29.9/bin:/trw/local/lynx/2.8.8-with-ssl/bin:/trw/local/perl6/2015.12/bin:/trw/local/perl6/2015.12/share/perl6/site/bin:/trw/local/simh/3.9-0/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/tom/Code/Tools
PERLDOC=-oterm
PERLPKGOPT=-noppm
PERL_BADLANG (unset)
SHELL=/bin/bash


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About