Skip to content

Instantly share code, notes, and snippets.

@sylints
Created April 28, 2018 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sylints/0fd150aaa7689279d83a30c85f8f56e5 to your computer and use it in GitHub Desktop.
Save sylints/0fd150aaa7689279d83a30c85f8f56e5 to your computer and use it in GitHub Desktop.
brute forcing hello world
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