in reply to Assignment of Arrays of Hashes
I read your code and think that you mean something like
$content{$selector[1]} = \@inline;When you use %hash you say eg$hash{'key'} = "Something". When you use an array eg @array you use eg $array[1] = "Something".
In case you don't know putting the following at the top of your scripts turns on useful warnings that help you catch problems quickly.
Update: OK, OK! I had not seen anywhere that you could do @hash{'key1', 'key2', 'key3'} = ('value1', 'value2', 'value3'); I am sorry! See Aristotle reply for explanation --blm--use strict; use warnings;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Assignment of Arrays of Hashes
by Aristotle (Chancellor) on Oct 14, 2002 at 11:38 UTC |