- or download this
sub give_me_a
{
...
chomp($word);
$word;
}
- or download this
The quick $adj1 fox ${verb1}ed over the lazy $noun1.
- or download this
my %word_list = ();
...
$line =~ s/\[(noun|verb|adj)([1-3])\]/$word_list{$1}{$2}/g;
print STDOUT $line;
}