in reply to Fast way to check if a sort was doen
$changed = 0; my @array = sort { my $result = ($a cmp $b); $changed = 1 if $result==1; # Only set changed if $a > $b $result } @oldarray;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Fast way to check if a sort was doen
by dewey (Pilgrim) on Jun 28, 2007 at 19:27 UTC |