Front page | perl.perl6.users |
Postings from September 2022
Re: BEGIN {} question
Thread Previous
|
Thread Next
From:
Andinus via perl6-users
Date:
September 2, 2022 03:20
Subject:
Re: BEGIN {} question
Message ID:
874jxqa2eq.fsf@cadmium.cadmium
ToddAndMargo via perl6-users @ 2022-09-01 10:30 -07:
> On 9/1/22 00:45, Richard Hainsworth wrote:
>> Treat the regexes as data for a program. Compile the program once.
>> Run the regexes as often as you need.
>
> Please elucidate. That could save me boat loads
> of time.
You could take the regex string from an environment variable or read
from a file. The program is compiled only once and you can test regexes
without re-compilation.
Thanks Richard, this is going to save me a lot of time.
Thread Previous
|
Thread Next