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

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

Thread Previous | Thread Next
From:
Zefram
Date:
August 29, 2013 11:05
Subject:
Re: [perl #116773] Documentation of $ in perlre
Message ID:
20130829110458.GR31643@fysh.org
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)/

-zefram

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