|
Training, Open Source computer languages
|
|
|
|
Perl Programming quiz, level Intermediate, question 16
| Question: | print "matched" if ($xyz =~ /end/); |
| Answer 1: | Prints the word "matched" if the text string in the variable $xyz includes "end". This was the CORRECT answer |
| Answer 2: | Prints the word "matched" if the text string in the variable $xyz is exactly "end" or "END". |
| Answer 3: | Prints the word "matched" if the text string in the variable $xyz is exactly "end". |
| Answer 4: | Prints the word "matched" if the text string in the variable $xyz contains an "e" and an "n" and a "d". |
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 |