Created
December 25, 2021 12:30
-
-
Save ruslanbes/fbb8ca0f2b9819b89d47e00c4f3f4c7a to your computer and use it in GitHub Desktop.
Two lines of code that parse two lines of embedded comments in the code to read the Mayan numbers representing the individual ASCII characters that make up the magazine title, rendered in 90-degree rotated ASCII art.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#:: ::-| ::-| .-. :||-:: 0-| .-| ::||-| .:|-. :|| | |
open(Q,$0);while("){if(/^#(.*)$/){for(split('-',$1)){$q=0;for(split){s/| | |
/:.:/xg;s/:/../g;$Q=$_?length:$_;$q+=$q?$Q:$Q*20;}print chr($q);}}}print"n"; | |
#.: ::||-| .||-| :|||-| ::||-| ||-:: :|||-| .:| | |
" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an error, must be
while(<Q>)
, and no quote in the end