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

RE: Re: Useless Program

by lhoward (Vicar)
on Jun 01, 2000 at 13:16 UTC ( [id://15803]=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 Re: Useless Program
in thread Useless Program

One problem with this code is if you're adding a name that is the prefix of a name already in the DB it will think that it is alrady there. Try running this code and adding les after leslie has already been added. Better to use eq instead of a regular expression in your compare since you are looking for an exact match. It will be faster too:
if ($_ eq $name) {
instead of
if (/^$name/) {

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://15803]
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.