in reply to Re^2: Problem with a text-parsing regex
in thread Problem with a text-parsing regex
G'day ibm1620,
"Your final print is a real head-scratcher, but I like what it does and I'll noodle on it some more...."
I'm assuming "final print" refers to:
print "$out\n" =~ s/ $//r =~ s/.{65}\K /\n/gr;
I don't know which bit, or bits, you're having difficulties with. One, or both, of these references might help:
I've shown the versions where /r and \K were introduced. With your stated 5.34.1 version, both of these will be available to you. I included this information for those using older versions of Perl.
— Ken
|
|---|