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
In reply to Re: Database storage confusion
by Cody Pendant
in thread Database storage confusion
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |