Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Confused by RegEx count

by eyepopslikeamosquito (Archbishop)
on Feb 21, 2024 at 23:40 UTC ( [id://11157832]=note: print w/replies, xml ) Need Help??


in reply to Confused by RegEx count

Melly, I found a couple of articles discussing your interesting challenge from two well-respected Perl book authors:

From brian_d_foy's article:

Perl has a few ways to do it (many languages do too, but no one cares) because there are actually several different problems you could be solving. A good answer takes into account the level of problem that you are trying to solve.

So if you provided more background and context on the specific problem you're trying to solve, we could provide better advice.

While the benchmarks of this little problem are interesting and instructive, code clarity and maintainability are usually more important than performance, as analysed in much more detail at on Code Optimization.

👁️🍾👍🦟

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11157832]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-12 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found