This is more of a comment than an answer, but I do not know how to do this, and this question has already been answered.
Note that using say instead of printing neatly wraps the whole problem. I.e
#!/usr/bin/perl use 5.010; use strict; use warnings; my $val = 1; for ( 1 .. 100 ) { $val = ($val * $val + 1) % 8051; say ($val / 8050); }
works as intended, even if the problem does not occur. I still wonder how useful the words are, given its tiny difference.
source share