From: "Matt Schaft" <[EMAIL PROTECTED]> > I am trying to make a linguistic database app. for the web. As I am > new to Perl and not a programmer this is proving to be quite a > challenge. My original idea was to use Perl's DBMs and a hash of > arrays that looks like this : > > { phrase1 => ["meaning1", "meaning2",..."meaningN","note1", > "note2",..."noteN"] } > > Everything seems to function fine (I'm still in the offline phase) but > I get no output when I go to print the hash only the keys come out.
DBMs usualy do not allow storing arrays or anything like that in the values. You can only store a simple scalar there. You will either have to use MLDBM or "serialize" the data yourself. For example you could join the "meaning"s using a character that's guaranteed to never appear there and store the resulting string in the DBM. And then you'll just split the string. HTH, Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain. I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]