hash of hashes

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


Cannot work this one out.

The following works OK:

my $test1=$der->encode({type => 'sequence',
 value => [{type => 'integer', value => 55},{type => 'string', value =>

Rather than placing the hash in the routine call I want to place it outside
and call it $der->encode(%hash);

my %hash;
if I now say
it will overwite 'integer' and '55'

How do I get around that?


Re: hash of hashes

John wrote:
Quoted text here. Click to load it

perldoc perldsc

push( @{ $hash{ 'value' } },
    { type=> 'integer', value => '55' },
    { type=> 'string',  value => 'hallo' } );

Re: hash of hashes

Quoted text here. Click to load it

Many thanks.

Site Timeline