Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Why this code run faster?

by diotalevi (Canon)
on Nov 08, 2007 at 17:34 UTC ( #649770=note: print w/replies, xml ) Need Help??


in reply to Re: Why this code run faster?
in thread Why this code run faster?

You are incorrect. /o is only operative when there is interpolation in the pattern. Since there is none - the pattern is compiled only once and at that is at the normal perl compile-time. That is, right along at the same time as the surrounding code. Compilation of interpolated patterns is deferred to runtime. If /o were present then the first interpolated pattern would be baked in.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2020-10-29 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (270 votes). Check out past polls.

    Notices?