develooper Front page | perl.perl5.porters | Postings from December 2007

Re: Changes in m//m in 5.10

Thread Previous | Thread Next
From:
A. Pagaltzis
Date:
December 20, 2007 10:26
Subject:
Re: Changes in m//m in 5.10
Message ID:
20071220182625.GF15399@klangraum
* demerphq <demerphq@gmail.com> [2007-12-19 23:15]:
> With the bare pattern however its arguable that we could check
> the modifiers on the m// and see if they match that of $regex
> and recompile if not. This would be DWIM but would also negate
> most of the point of using qr//.

I feel a vague unease about piling ever more exceptional cases
onto the rules… Does this really give the user something that is
a) needed b) hard to achieve otherwise?

> Probably it would be better to simply warn "Useless use of
> modifiers on m/// at line ...".

+1

That is much more agreeable.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

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