Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re^3: Character class in an array

by Fastolfe (Vicar)
on Sep 21, 2002 at 18:23 UTC ( #199781=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Character class in an array
in thread Character class in an array

I was just extending the original poster's qr/// suggestion. If you interpolate a variable in a 'qr' string, it "stays" interpolated and will not change if the value of the original variable changes with it, unless you re-create the string for every iteration. Obviously, if you're going to want to use qr/// or the /o flag on a regex, you are doing so because you wish Perl to compile the regular expression once (at least within the lexical scope of the qr/// string).


Comment on Re: Re^3: Character class in an array
Re^5: Character class in an array
by Aristotle (Chancellor) on Sep 21, 2002 at 22:25 UTC
    True enough - what I'm saying is you don't have that option to begin with when using /o.

    Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2015-07-04 20:09 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 (60 votes), past polls