Any ideas on its disappearance in v5.26 (and later versions)?
The condition that triggers the warning (in MM_Any.pm) is:
if ($self->{ABSTRACT} && $self->{ABSTRACT} =~ m![[:cntrl:]]+!) { # war
+ning is given }
That condition is still there in perl-5.26, and I can't see any change to it.
Perhaps a change in the regex engine was introduced in 5.26.
Are you able to verify that the abstract does, in fact,
=~ m![[:cntrl:]]+! in perl-5.20 but not in perl-5.26 and later ?
The question would then be "Did that change in the regex fix a problem, or did it create one ?".
From your description of the ABSTRACT, I'm not sure that it does actually contain any control characters.
Update:I'm having no luck in reproducing your issue at all (on Windows).
I find that it's the same behaviour from 5.20 onwards. For me, the presence of either
chr(10) ("\n") or
chr(13) ("\r") always results in a match.
What's the
perl -V ?
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.