Bioperl Training Exercise 3

From BITS wiki
Jump to: navigation, search
  1. Create an array (@ids) of sequence identifiers, e.g. your favorite genes. (You’re encouraged to use the qw() operator.)
  2. Print out the first element.
  3. Print out the last element.
  4. Print the array within a double-quoted string and see how Perl handles that.
  5. Print that array again but with a comma and space between the elements
  6. Print the array again with each ID on a separate line (loop construct)
  7. Print the array again with each ID and index in the array (other loop construct)
  8. Print out an array slice of the 2nd to 4th items within a double-quoted string
  9. APrint the last index of the array
  10. Assign a value to element with index 42 of the array and print the last index of the array again.
  11. Print the elements on separate line again. Strange things happened, no ?