From: darren kirby Date: 2008-04-01T12:45:06+09:00 Subject: Re: assignment if key_exist? in Hash quoth the Peņa, Botp: > From: darren kirby [mailto:bulliver@badcomputer.org] > # > foo = some_hash["some_key"] if some_hash.has_key?("some_key") > > try, > > foo = some_hash["some_key"] || foo > > kind regards -botp That's the one. Thanks botp, -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972