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