$name=$data->{name}; #reads the content of name print "$data->{$name} is $data->{age} years old.#goes to the value/attribute #pointed by $name