Perl Programming quiz, level Advanced, question 38
| Question: | The ~ operator |
| Answer 1: | Performs bitwise negation This was the CORRECT answer |
| Answer 2: | Does a limited regular expression match, returning just a true or false value and not setting $& or other special variables. |
| Answer 3: | Returns 1 if the value is false, and "" if the value is true. |
| Answer 4: | There is no such operator on its own - there's only !~ and =~ operators (and in Perl 6 the ~~ operator) |
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.
|
|