in reply to Re: Re: Passing hashes by reference
in thread Passing hashes by reference

Yes, the -> is key. Without it, the lhs would be interpreted as $h_ref{'one'}, ie an element of the hash %h_ref.

Though this is convenient, it isn't the only way to do it. You may use the notation $$href{'one'}, but that's just ugly. The same notation can be use with arrays (not the same thing as a list!) like this: $my_array->[1]



Who is Kayser Söze?