develooper Front page | perl.perl5.porters | Postings from February 2022

Conditional qualifiers

Thread Next
February 28, 2022 17:38
Conditional qualifiers
Message ID:
I found needing something like this for clarity:


This way if are we in file scope the quantifiers will be captured optional
and then the backreference will work as expected too.

Currently this gives the following error:

Quantifier follows nothing in regex;

Thus I don't think any backwards compatibility will be broken.

Thanks for the attention - hope you find my suggestion somewhat captivating.

Alexander Nikolov

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