develooper Front page | perl.perl5.porters | Postings from October 2015

Re: YA smartmatch proposal

Thread Previous | Thread Next
From:
Eric Brine
Date:
October 13, 2015 15:13
Subject:
Re: YA smartmatch proposal
Message ID:
CALJW-qHr=7Rb-qaPZdxQh8TVLco3KQabhaOD-eHHr5c=EcwnDQ@mail.gmail.com
On Mon, Oct 12, 2015 at 6:17 AM, Dave Mitchell <davem@iabyn.com> wrote:

> On Wed, Oct 07, 2015 at 07:07:53PM +0200, Lukas Mai wrote:
> > This would mean 'when (qr/.../)' becomes 'when { $_ eq qr/.../ }'.
>
> Good point. So a literal qr// will have to be accepted as well as a
> literal //, perhaps along with a warning that "given(qr/.../) better
> written as given(/.../)" ?
>

Why? "split(qr{...}, ...)" doesn't warn, and I use that whenever I want a
delimiter other than "/". Even "$_ =~ qr{...}" doesn't warn.

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