Am I missing something?
Something like this?
while ($n) { $i = $n % 26; unshift @vector, $i; $n -= $i; $n /= 26; } print map { chr(64+$_) } @vector;
Untested!
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: Split int into segments of max int 26
by LanX
in thread Split int into segments of max int 26
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |