banduwgs has asked for the wisdom of the Perl Monks concerning the following question: (references)

How to compare content of two references for equality?

Originally posted as a Categorized Question.

  • Comment on How to compare content of two references for equality?

Replies are listed 'Best First'.
Re: How to compare content of two references for equality?
by DrHyde (Prior) on Oct 07, 2003 at 12:21 UTC

    Data::Compare:

    use Data::Compare; print "same" if Compare( $ref1, $ref2 );
    But be aware that Data::Compare may not necessarily do the right thing in the rare case that you try to compare an object which overloads the stringify or numify operations.

Re: How to compare content of two references for equality?
by hardburn (Abbot) on Oct 07, 2003 at 13:37 UTC