Skip to content

Instantly share code, notes, and snippets.

@santiago
Created February 17, 2015 02:06
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 santiago/ae3c5dd21cb5125721a8 to your computer and use it in GitHub Desktop.
Save santiago/ae3c5dd21cb5125721a8 to your computer and use it in GitHub Desktop.
$DNA1 = "ACGGGAGGACGGGAAAATTACTACGGCATTAGC";
$x = "AC";
$c = () = $DNA1 =~ /$x/g;
print "$c\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment