Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Form validation/Search script

by Zaxo (Archbishop)
on Oct 24, 2005 at 14:28 UTC ( [id://502546]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Form validation/Search script

That depends on what you're searching. A database will more or less do it for you via DBI and SQL. Text search in files may use system grep or an index of some kind, or can use pure perl. Detail what you want.

If a regex is needed, you can join the search terms with '|' to make an alternation in the regex. That will find a match each time it finds one term.

Your "standard" treatment of the posted form is not so standard any more. Just saying,

use CGI; my $q = CGI->new;
takes care of all that.

After Compline,
Zaxo

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://502546]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.