Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Meaning of /o in Regexes

by slife (Scribe)
on Dec 06, 2002 at 13:47 UTC ( #218069=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Meaning of /o in Regexes
in thread meaning of /o in regexes

Thanks, But this part I understood, it is the comparison with qr that I am puzzeled about.

/o and qr// provide different services to the programmer:

/o says 'Take this pattern and create a compiled regex that will not change for the life of the program'

qr// says 'Take this pattern and return a special object that I can assign to a variable, interpolate into another pattern, pass to a subroutine, etc, etc, and as a side-effect creates a compiled form that I can use in pattern matches directly.'


Comment on Re: Re: Re: Meaning of /o in Regexes

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-07-07 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls