-
-
Save sylints/0fd150aaa7689279d83a30c85f8f56e5 to your computer and use it in GitHub Desktop.
brute forcing hello world
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
my @target_array = "Hello, World!".comb; | |
my @string_array; | |
my $i = 0; | |
while $i < @target_array.elems { | |
@string_array[$i] = chr((32..126).roll); | |
if @string_array[$i] eq @target_array[$i] { | |
$i += 1; | |
} | |
print @string_array.join(''); | |
sleep(.002); | |
print "\r"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment