Skip to content

Instantly share code, notes, and snippets.

@need4spd
Created November 28, 2012 23:08
Show Gist options
  • Save need4spd/4165411 to your computer and use it in GitHub Desktop.
Save need4spd/4165411 to your computer and use it in GitHub Desktop.
perl hash
my %rule = (1=>2, 2=>3, 3=>5, 4=>7, 5=>11, 6=>13, 7=>17);
foreach my $k (keys %rule) {
print "$rule{$k}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment