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

Re: Changes in m//m in 5.10

Thread Previous | Thread Next
A. Pagaltzis
December 20, 2007 10:26
Re: Changes in m//m in 5.10
Message ID:
* demerphq <> [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 ...".


That is much more agreeable.

Aristotle Pagaltzis // <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About