in reply to Next permutation

> next permutation

Could it be that you want the next lexicographical permutation ?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice