in reply to help with hashes
This interpolates in a string, too, so you can say:
print "$aminoacids{$i} $aminoacids{$j} $aminoacids{$k}\n";
Though you can use the more idiomatic hash slice and select several things at once.
print join " ", @aminoacids{$i, $j, $k}; # note the '@'
|
|---|