The main place where Z29 appears is in the a() subroutine where you generate a hash %h whose keys are elements of Z29 and whose values are the discrete logarithms of those elements. But then you immediately turn around and use values on %h, which extracts the logs, but not in any mathematically interesting order. The order is determined by the order in which the Z29 elements happen to appear in the Perl hash, which is dependent on the hashing function that Perl uses.
This is why the program doesn't work except under 5.6.0: The Perl hash function changed in 5.6.0, and the order of the items in the return value of a() depends on this hash function.
In reply to Re: My first JAPH
by Dominus
in thread My first JAPH
by rpc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |