develooper Front page | perl.perl6.users | Postings from September 2022

Re: BEGIN {} question

Thread Previous | Thread Next
From:
ToddAndMargo via perl6-users
Date:
September 2, 2022 06:33
Subject:
Re: BEGIN {} question
Message ID:
2bd5986c-b241-eddd-dcec-55651c0a3201@zoho.com
On 9/1/22 20:16, Andinus via perl6-users wrote:
> 
> 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.


There are probably over 600 regex's in the
program in question.  Am I missing something?

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