Perl-Sensitive Sunglasses | |
PerlMonks |
Re: 20 years confusedby kcott (Archbishop) |
on Jun 13, 2020 at 05:35 UTC ( [id://11118011]=note: print w/replies, xml ) | Need Help?? |
G'day OrdinaryFIlmmaker, Welcome to the Monastery. It would've helped if you'd read "How do I post a question effectively?" before posting. Providing your data as paragraph (<p>) text does not allow us to see what it really is: HTML will, amongst other things, convert sequences of whitespace to a single space. We might have got clues from your code, but you didn't post that. Here's what your input data looked like (newlines are represented by '$'s):
Your wanted output is also questionable: space before 1st date but not the others; and, records ending with 2 commas, a space, and a newline. Except for the dodgy space before the 1st date, this code produces the output you asked for:
Output:
Update:
A very minor update (adding a single missed letter) which changes the meaning (to what I originally intended).
— Ken
In Section
Seekers of Perl Wisdom
|
|