Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

How to compare content of two references for equality?

by banduwgs (Beadle)
on Oct 07, 2003 at 10:15 UTC ( [id://297244]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://297244]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-25 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found