Perl Programming quiz, level Intermediate, question 13
| Question: | If you refer to $vn[-1] in your program, you are referencing: |
| Answer 1: | The last element of list @vn This was the CORRECT answer |
| Answer 2: | The length of the list @vn |
| Answer 3: | Whatever is in memory in front of the @vn list |
| Answer 4: | This use would be an error, and you would get a message telling you that your list subscript was out of range. |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|