I'm still trying to deal with hash dereferencing. My current problem is that I pass hashref to sub, and I want to dereference it in that sub. But I do not find the correct method / syntax for this. Inside the sub, I want to iterate the hash keys, but the syntax for hashref is not the same as the hash that I know how to do.
So what I want to do is:
sub foo { %parms = @_; foreach $keys (key %parms) {
but with a hashref instead of a hash.
Any pointers (no pun intended) are welcome.
Thanks.
perl dereference hash
sgsax
source share