Jun 22, 2001, 6:44 AM
Post #1 of 1
wildcards in searchstring
I'm a beginner and I'm modifying a script that I have already written. The original script performed a script of text files. The new script is going to search by many different criteria in the database and I don't want users to need to enter a keyword to search by. I didn't want to totally rewrite the old script so I tried to insert a phrase (I know this is the bass-ackwards way to do this) to make it search all the files.
Here's the line:
my $srch = 'a' or 'b' or 'c' or 'd' or 'e' or 'f' or 'g' or 'h' or 'i' or 'j' or 'k' or 'l' or 'm' or 'n' or 'o' or 'p' or 'q' or 'r' or 's' or 't' or 'u' or 'v' or 'w' or 'x' or 'y' or 'z';
Basically what I want is a wildcard so everything will come up unless narrowed down by the other search criteria. It seems to work just fine if someone is on a US keyboard, but not if on a Russian keyboard even using English characters.
Is there a better way to get a wildcard????
Thanks in advance,