From: "W. Huang" <[EMAIL PROTECTED]>

> I have a refence to a hash, which is $hashref. I want to print out the
> name of the hash ( which is "%hash" ) from $hashref, but don't know
> how. Could you please help? thanks!
> 
> #-----
> %hash= {
>    apple => "red",
>    bana  => "yellow",
> };
> $hashref =\%hash;
> print ?hashref;
> #-----

1) You don't want to do that.
2) You could find the name if the variable to which you have the 
reference was global/package if you searched recursively through 
%{main::}.
3) You don't want to do that.
4) If the %hash is lexical you are out of luck.
5) You don't want to do that.

Tell us why do you think you need to do that.

Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
                                        --- me


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to