Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: ||= oddity

by moritz (Cardinal)
on May 29, 2008 at 08:50 UTC ( [id://688978]=note: print w/replies, xml ) Need Help??


in reply to Re^3: ||= oddity
in thread ||= oddity

Performance and convenience.

I think that indexes work far better for constant strings than for regular expressions, and the regular search has a much larger index. It also means that they don't have to index non-word-characters, many of which are garbage anyway (programming languages being an exception, for which the code search was made).

Convenience because you want to be able to search for CoolProduct, even if the official name is CoolProduct!. And usually you want an exact phrase to match even if some punctuation differs.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-28 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found