At 05:33 -0500 02.08.2001, Scott R. Godin wrote:
>### Create some megalith records in the database
>%database1 = (
> 'Avebury' => {
> name => 'Avebury',
> mapref => 'SU 103 700',
> location => 'Wiltshire'
> },
> 'Ring of Brodgar' => {
> name => 'Ring of Brodgar',
> mapref => 'HY 294 133',
> location => 'Orkney'
> }
>);
Try this instead:
%foo = ( ... );
@database1{keys %foo} = values %foo;
The MLDBM docs talk about this. This was documented not to work in 5.004,
and apparently changes to TIEHASH in 5.005, or at least 5.6, have made it
so it works.
--
Chris Nandor [EMAIL PROTECTED] http://pudge.net/
Open Source Development Network [EMAIL PROTECTED] http://osdn.com/