I'm a little concerned that there might be problems with possible 'extra' stuff in the array that might make the two arrays that are otherwise the same come up as not-equal.@sort_savedpids = sort {$a <=> $b} (@savedpids = get_saved_pids()); @sort_livepids = sort {$a <=> $b} (@livepids = get_live_pids()); if (@sort_savepids ne @sort_livepids ) { <DO STUFF> }
In reply to Comparing sorted arrays by KPeter0314
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |