Please note that you can easily implement any "swap" with array slices, like
@a[0,1]=@a[1,0]
and @a=split//,$number
will initialize it.
Now you know everything needed to implement your ideas.
HTH! :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^3: Next permutation
by LanX
in thread Next permutation
by aartist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |