Comments on: An Alphabet in 25 Characters https://nickm.com/post/2011/05/an-alphabet-in-25-characters/ Nick Montfort Sat, 21 May 2011 14:24:10 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Nick Montfort https://nickm.com/post/2011/05/an-alphabet-in-25-characters/comment-page-1/#comment-10586 Sat, 21 May 2011 14:24:10 +0000 http://nickm.com/post/?p=1683#comment-10586 Ah, I always forgot an optimization (or several). Here’s a 24-character version:

yes | perl -pe '$.%=26;$_=$"x$..chr$.+97'

Here’s a 35-character version which, saved as a file, will run in perl without command-line options:

{$.%=26;print$"x$..chr$.+++97;redo}

That is, save it as “abc.pl” and you can run it as “perl abc.pl”.

]]>