|
#i have a hash, and i want this hash to become a member of another hash.
#e.g.
%ages = {john=>3, siggi=>13}
#and now i attempt to make this hash a member of another data structure:
$all_about_people{ages} = %ages;
#but it doesn't work and i dont know how to throw a hash into a structure like that.
#Does anybody know?
|
|
|
#i got it... the answer is:
%all_about_people = (ages => {%ages});
#thanks for nothing (joke)
|
|
|
|
|
|
|
// |