Skip to content

Commit

Permalink
perl implementatino
Browse files Browse the repository at this point in the history
  • Loading branch information
ColtonPhillips committed Jun 16, 2013
1 parent 527bde5 commit 40f05e4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions generate_theme.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
open(my $VERBS, "<", "verbs.txt")
or die "cannot open < verbs.txt: $!";
open(my $NOUNS, "<", "nouns.txt")
or die "cannot open < nouns.txt: $!";

@verbs = <$VERBS>; chomp @verbs;
@nouns = <$NOUNS>; chomp @nouns;

for ($count = 1; $count < 100; $count++) {
$verb = ucfirst $verbs[int rand $#verbs];
$noun = ucfirst $nouns[int rand $#nouns];
print "$verb the $noun\n";
}

0 comments on commit 40f05e4

Please sign in to comment.