Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Perl and MySQL - performing a search...

by powerhouse (Friar)
on Jan 26, 2003 at 19:55 UTC ( #230021=note: print w/replies, xml ) Need Help??


in reply to Re: Perl and MySQL - performing a search...
in thread Perl and MySQL - performing a search...

So, your saying I should POSSIBLY have something like a hash, with all my obscene names in it, then have perl just run through the hash with a foreach, and do a "contains" search?

Something like that?

Even If I did that, would not it have the same problem? if asshole =~ ass would never be true, because asshole is being searched for in the whole word ass, therefore it would never find it.

So, what do you suggest I do, to eliminate this problem?

I'm open to suggestions. Thanks for any you have :o)

thx,
Richard
  • Comment on Re: Re: Perl and MySQL - performing a search...

Replies are listed 'Best First'.
Re: Re: Re: Perl and MySQL - performing a search...
by Thelonius (Priest) on Jan 26, 2003 at 20:50 UTC
    You don't need to have a hash or to use a regular expression. All you have to check is whether the fetch found anything or not.
Re: Re: Re: Perl and MySQL - performing a search...
by powerhouse (Friar) on Jan 26, 2003 at 20:16 UTC
    Is there a module that will do this for me, if I pass a username to it?

    Anyone Know of one?

    thx,
    Richard

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2020-08-13 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (68 votes). Check out past polls.

    Notices?