develooper Front page | perl.perl5.porters | Postings from July 2013

Re: [perl #116773] Documentation of $ in perlre

Thread Previous | Thread Next
From:
Eric Brine
Date:
July 25, 2013 17:01
Subject:
Re: [perl #116773] Documentation of $ in perlre
Message ID:
CALJW-qGjUcTQWJgsGTdKpmnk91k_HYaF0Ef=zLj65yzJUgo3Qw@mail.gmail.com
By the way, the definition of /m is even worse.

That is, change "^" and "$" from matching the start or end of line only at
the left and right ends of the string to matching them anywhere within the
string.

It's hard to decipher and wrong. How about

That is, change "^" so that it also matches after every newline, and change
"$" so that it also matches before every newline.

- Eric

Thread Previous | Thread Next


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