in reply to Database still overwriting itself

The single quotes are preventing variable expansion, so your database only contains one key, with the word '$notverified' in it. Inside single quotes a $ doesn't mean anything except dollars. Use $dbm{$notverified} instead.

Replies are listed 'Best First'.
Re: Re: Database still overwriting itself
by sulfericacid (Deacon) on Feb 14, 2003 at 18:40 UTC
    I tried removing the single quotes but it creates an internal server error saying the line with $dbm{$notverified} needs a global symbol. I try to my it but it says that's incorrect syntax.

    Any suggestions?

    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

    sulfericacid
      After looking through your code a little more thoroughly, I see that $notverified and $verified are never defined. So if you remove the single quotes, you get an error. If you leave them, you are creating the keys named for your variables. And don't get me started on your logic behind this...
        Why are neither of them defined? I set $dbm{'$notverified'}= join "::",@unverified_emails; and $dbm{$verified} to another database varible. Thanks

        "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

        sulfericacid