in reply to more fun with references and hashes
First, if you have a refrence to a hash, doing $pin_hasref{$pin} isn't going to work. What that says is that You have a hash named %pin_hasref, and you don't. You have a scalar named $pin_hashref that is a refrence to a hash. So you need to do the following..
Second, I think what you want to return is a refrence to your new hash, not just the contents.$new_hash{$pin} = $pin_hashref->{$pin};
Hope this helps..
Rich
|
|---|