The answer to this question is probably beyond trivial but I can't figure it
out. Say we have the following situation:
my %hash = (
abcd => {
a1 => 1,
a2 => 2,
a3 => 3
}
);
another_nasty_sub (\%{$hash{abcd}});
How can I access the name (abcd) of the passed reference inside of the
subroutine (not just the data a1 a2 etc but the actual key name)? Currently
what I am doing is passing 'abcd' as a second value to the subroutine, but
there
got to be another way...?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>