> Are there any ways to test whether the two references point to the same
> thing?

>From "perldoc perlref":

    Using a reference as a number produces an integer
    representing its storage location in memory. The only useful thing to be
    done with this is to compare two references numerically to see whether
    they refer to the same location.

        if ($ref1 == $ref2) {  # cheap numeric compare of references
            print "refs 1 and 2 refer to the same thing\n";
        }

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to