Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Aharrr!

by benn (Priest)
on Sep 17, 2003 at 16:08 UTC ( #292158=note: print w/ replies, xml ) Need Help??


in reply to Re: Aharrr!
in thread Aharrr!

I'm not sure what "squint at the dubloons" (Pirate for "study $_") does.
Indeed, study looks at a string and indexes the chars for later regex use - pretty much made redundant by qr though. Here though, it's simply decoration. :)


Comment on Re: Re: Aharrr!
Re: Re: Re: Aharrr!
by bunnyman (Hermit) on Sep 18, 2003 at 14:13 UTC

    study and qr are not the same thing at all. qr compiles a regex string into the data structure that represents that regex in memory. study processes a string that a regex is going to process later. So the difference is that qr speeds up the regex on the right side of =~ and study speeds up the string on the left side.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2014-09-20 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (158 votes), past polls