|
Training, Open Source computer languages
|
|
|
|
Perl Programming quiz, level Advanced, question 4
| Question: | You can read the name of all the variables in use in your main package by reading the symbol table |
| Answer 1: | from a hash called %main:: This was the CORRECT answer |
| Answer 2: | from a hash called %program |
| Answer 3: | using the method symtable::read in the module symtable.pm |
| Answer 4: | using the typeglob *symbols |
| Answer 5: | using methods in the CTreee package that's supplied as part of the Perl distribution |
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 |