in reply to Positional keys

Here's a function you might like:
# multi_dim(\%hash, @keys, $value) # sets $hash{$key[0]}{$key[1]}... = $value sub multi_dim { my $h = \shift; my $v = pop; $h = \$$h->{shift()} while @_; $$h = $v; }

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re: Re: Positional keys
by tame1 (Pilgrim) on Feb 08, 2002 at 16:06 UTC
    japhy,

    If you are female, I smother you with kisses. If you are male, you get one kiss per cheek.

    THANK YOU!

    What does this little button do . .<Click>; "USER HAS SIGNED OFF FOR THE DAY"