in reply to DBM keys/values

You could serialize your values with one of the CPAN modules for the task, like Storable or FreezeThaw; or use a multilevel DBM astraction like MLDBM. Anyway if your needs are basic you could rather prefer to join different values with a control character, like \cR:

$dbm{'notverified'} = join "\cR","$form{'usermail'}", "$ID" ;

I chose CTRL-R as a mnemonic for Record separator.

Ciao!
--bronto


The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz

Replies are listed 'Best First'.
Re: Re: DBM keys/values
by sulfericacid (Deacon) on Feb 13, 2003 at 04:43 UTC
    Thanks for your suggestion Bronto, I don't really want to go use other DBMs or any multi-level or more advanced databases seeming I'm still trying to learn DBM :)

    Thanks for your help!

    "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