Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: ||= oddity

by why_bird (Pilgrim)
on May 29, 2008 at 08:44 UTC ( [id://688977]=note: print w/replies, xml ) Need Help??


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

Yea me too, excellent. *veers off on a tangent* I've often wondered why Google doesn't allow regular expressions, or even most symbols in their regular search. Any ideas?
........
Those are my principles. If you don't like them I have others.
-- Groucho Marx
.......

Replies are listed 'Best First'.
Re^4: ||= oddity
by moritz (Cardinal) on May 29, 2008 at 08:50 UTC
    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://688977]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-28 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found