I have a reference to a hash that contains some references. I was just wondering if there was a more simplistic Way of dereferencing the contained references without having to assign them to another reference like this:
my $href = shift; #some hash
my $temp = $href->{element};
print join('',@$temp);
What I want is to avoid copying the reference into $temp and then getting the info it's referencing. I don't think @$href->{element} would work seeing that $href is a reference itself. I'm just all for concise code. If anyone knows of a proper way to do this, I'd appreciate it.