in reply to Re: Please help me understand this permutation sub?
in thread Please help me understand this permutation sub?
Thanks choroba,
Your print statements are very much in line with what LanX posted as well. Both of them make the recursion very much more obvious to me. But my problem is in 'backing up' the recursion, for lack of a better way to put it. In my reply to LanX above, I laid out the exact spot that is tripping me up. There's something about going from the first completed permutation, resulting in $perm = abcd, to the next line of output, where the $perm is now abd, missing the c.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Please help me understand this permutation sub?
by LanX (Saint) on Dec 09, 2020 at 14:10 UTC |