in reply to Re: Fast way to check if a sort was done (using stringification is *broken*)
in thread Fast way to check if a sort was doen
my $signature = md5(pack('(J/a*)*', @array));
should do the trick quickly.
Update: Of course, md5 really doesn't add anything. You could just use
my $signature = pack('(J/a*)*', @array);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Fast way to check if a sort was done (using stringification is *broken*)
by bobf (Monsignor) on Jun 29, 2007 at 04:13 UTC |