|
Training, Open Source computer languages
|
|
|
|
Perl Programming quiz, level Intermediate, question 7
| Question: | The program line @vvv=<XYZ>; |
| Answer 1: | Reads all remaining data from the file handle XYZ into the list @vvv This was the CORRECT answer |
| Answer 2: | Would cause a syntax error as you can't read a scalar into a list |
| Answer 3: | Reads the whole file opened on the file handle XYZ into the list @vvv |
| Answer 4: | Reads from the file handle XYZ into the list @vvv until all the existing elements of @vvv have been overwritten |
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.
|
|
©
WELL HOUSE CONSULTANTS LTD., 2010: Well House Manor •
48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 344596 •
EMAIL: info@wellho.net •
WEB: http://www.wellho.net •
SKYPE: wellho |