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

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

Thread Previous | Thread Next
From:
Eric Brine
Date:
August 29, 2013 13:44
Subject:
Re: [perl #116773] Documentation of $ in perlre
Message ID:
CALJW-qFV+SRDKu4cE=O6RXBEkdYh70zMUu5cwXc=QSLpX0JF4A@mail.gmail.com
On Thu, Aug 29, 2013 at 7:04 AM, Zefram <zefram@fysh.org> wrote:

> Eric Brine wrote:
> >By the way, the definition of /m is even worse.
>
> I wonder if it would help to give precise definitions of /^/ and /$/
> in terms of the simpler operators that were not available when that
> document was originally written.
>
>         /^/     /\A/
>         /$/     /(?=\n?\z)/
>         /^/m    /(?:\A|(?<=\n)(?!\z))/
>         /$/m    /(?=\n|\z)/
>

That's exactly what I'd like for myself, but think average person would
want a text description as well.

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