Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Optimization of Regexes

by shadowSage (Novice)
on Sep 22, 2014 at 14:24 UTC ( [id://1101532]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Optimization of Regexes
in thread Optimization of Regexes

And the difference is that the latter is more efficient to execute, though it's slower to compile

Yep, I read you loud and clear there. I gather there is some way to override the default (if for some reason I did want to use the pre 5.10 way)? Just idle curiosity.

What? What is it you want?

Was just wondering if there was a way to get the optimized regex in a scalar without Regexp::Assemble, like maybe it gets stored in some var somewhere.

No big deal if it doesn't, I am just playing/experimenting/learning at the moment.

Replies are listed 'Best First'.
Re^5: Optimization of Regexes
by ikegami (Patriarch) on Sep 22, 2014 at 15:27 UTC

    No way to override how the regex gets compiled.

    Are you operating on the mistaken belief that the pattern gets transformed before being compiled? The only transformation that happens is the compilation of the pattern, and I've already showed you how to see what that results in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-18 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found