From: Rus Foster <[EMAIL PROTECTED]> > %hash = ( '1' => { url => "www.slashdot.org" , title => "News for > nerds" , lastvisit =>" 100000" } ); > %hash .= ( '2' => { url => "www.slashdot.org" , title => "News for > nerds" , lastvisit =>" 100000" } ); > > and I'm getting > > Can't modify private hash in concatenation (.) or string at ./perldbm > line 15, near ");"
What is the .= supposed to mean??? You can concatenate strings, not hashes! The coe should look like this: %hash = ( '1' => { url => "www.slashdot.org" , title => "News for nerds" , lastvisit =>" 100000" } ); # here I set the whole hash to contain just those values $hash{'2'} = { url => "www.slashdot.org" , title => "News for nerds" , lastvisit =>" 100000" }; # here I change only the value for the '2' key. HTH, Jenda=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]