Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: compare two hashes inefficiently.

by MrNobo1024 (Hermit)
on Sep 08, 2001 at 03:17 UTC ( #111076=note: print w/replies, xml ) Need Help??


in reply to compare two hashes inefficiently.

You don't need to use MD5 just to compare two strings. :-) I would have written it like this:
sub hcmp { use Data::Dumper; return(Dumper(shift) eq Dumper(shift)); }

-- MrNobo1024

s]]HrLfbfe|EbBibmv]e|s}w}ciZx^RYhL}e^print

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://111076]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2018-06-24 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?