|
Training, Open Source computer languages
|
|
|
|
Perl Programming quiz, level Intermediate, question 15
| Question: | s/(\w)/\u$1/g; |
| Answer 1: | Changes all lower case letters in the string stored in the variable $_ to upper case. This was the CORRECT answer |
| Answer 2: | Changes the first letter in the string stored in the variable $_ to upper case. |
| Answer 3: | Changes all letters in the string stored in the most recently used scalar variable to upper case. |
| Answer 4: | Changes the first letter in the string stored in the most recently used scalar variable $_ to upper case. |
| Answer 5: | adds \u in front of every letter or digit in the string in $_ |
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., 2012: Well House Manor •
48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 •
EMAIL: info@wellho.net •
WEB: http://www.wellho.net •
SKYPE: wellho |