c has asked for the wisdom of the Perl Monks concerning the following question:
I have a hash of arrays. I would like to create equivalents between hash keys without repeating the whole array.
my %hash = ( 'one' => [ ( 'abc', 'def', 'ghi' ) ] ); $hash{'two'} = @{$hash{'one'}};
Doesnt look as though this works, can someone educate me on this? Thanks -c
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: one hash value (array) into another
by Enlil (Parson) on Jan 06, 2004 at 18:25 UTC | |
Re: one hash value (array) into another
by duff (Parson) on Jan 06, 2004 at 18:29 UTC | |
Re: one hash value (array) into another
by Limbic~Region (Chancellor) on Jan 06, 2004 at 18:26 UTC | |
Re: one hash value (array) into another
by dragonchild (Archbishop) on Jan 06, 2004 at 20:14 UTC | |
Re: one hash value (array) into another
by jbware (Chaplain) on Jan 06, 2004 at 18:25 UTC | |
Re: one hash value (array) into another
by calin (Deacon) on Jan 20, 2004 at 19:26 UTC |
Back to
Seekers of Perl Wisdom