Hi monks,
I am creating dynamically generated hashes, as follows:
foreach my $name(@list_of_junk){
%{$hash_ref} = (
"junk_name" => "$name",
"two" => result_of_function($name)
);
# %{$interface_hash_ref} = ("three" => "toilet"); (line deliberately commented out)
push @interfaceref_array, $interface_hash_ref;
$interface_hash_ref = {};
};
Now what I'd like the commented-out line to do is add to the current hash via the reference $interface_hash_ref,
but it doesn't seem to work. Any ideas why?
Cheers
Chris