"Q. Why the klunky foreach block at the top of the
attached code? Shouldn't sorting be simpler?
"A. Actually, sorting data is simpler, but, in this case we were
dealing with sorting on two levels, which may not have been readily
apparent. The @s_perms array that gets returned from the public
domain "permute" subroutine actually contains multiple scalar
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.