And, as a further guess, the way $self->{ABSTRACT} is assigned its value, has something to do with it.
It's all very strange.
I, in fact, did get to wonder whether the change was in the assignment of
$self->{ABSTRACT}, and *not* in the behaviour of
$self->{ABSTRACT} =~ m![[:cntrl:]]+!
However, I didn't really look at how the former was being assigned.
If I could reproduce the issue I reckon I'd be wanting to understand it.
But I can't reproduce it ... so it's really not all that important to me. (I guess I just find it "intriguing" rather than "important".)
To satisfy my own curiosity, I fiddled about with the following script, on both Linux and Windows:
use strict;
use warnings;
my $count = 0;
for my $s(chr(13) . chr(10),
chr(10) . chr(13),
chr(10) ,
chr(13) ,
'0' . chr(13) . chr(10),
'0' . chr(10) . chr(13),
'0' . chr(10) ,
'0' . chr(13) , ) {
$count++;
print "$count match\n" if ($s && $s =~ m![[:cntrl:]]+!);
}
But it just outputs:
1 match
2 match
3 match
4 match
5 match
6 match
7 match
8 match
on every perl I run it on.
So I don't understand how a lone
\r is being treated differently to a lone
\n or
\r\n in some cases for you.
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.