in reply to Database storage confusion
I don't understand a couple of those:$dbm{'name'} = $name overwrites the previes entry $dbm{$name'} = $name creates redundant Aaron Aaron $dbm{$name}; creates Useless use of DBM error $dbm{$name} = ""; writes Aaron
$dbm{'name'} = $name overwrites the previes entry # Yes, quite correct $dbm{$name'} = $name creates redundant Aaron Aaron # I don't think so. You've got bad punctuation there, what do you expect Perl to do? Perhaps you're creating a value of "Aaron" but with a key of "Aaron'" -- see quotes? $dbm{$name}; creates Useless use of DBM error # quite so. Meaningless if that's the whole statement. $dbm{$name} = ""; writes Aaron # no it doesn't, I'm betting. $dbm{$name} should be an empty string now.
Prove it to us with some more code?
Like for instance:
and so on. --$name = Aaron; $dbm{$name} = $name; print $dbm{$name}; $dbm{$name'} = $name; print $dbm{$name'};
Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.
M-J D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Database storage confusion
by sulfericacid (Deacon) on Mar 09, 2003 at 00:44 UTC | |
by demerphq (Chancellor) on Mar 09, 2003 at 15:38 UTC | |
by sulfericacid (Deacon) on Mar 10, 2003 at 04:11 UTC | |
by demerphq (Chancellor) on Mar 10, 2003 at 08:15 UTC | |
by Cody Pendant (Prior) on Mar 09, 2003 at 06:38 UTC |