Perl Programming quiz, level Advanced, question 13
| Question: | When developing a module, you'll often use "die" to flag errors, but when you release your module for others to use, you'll want the error message to reflect where abouts in *their* code the failing call was made. You should replace die with: |
| Answer 1: | croak, and ensure that the last character of the error message is NOT \n This was the CORRECT answer |
| Answer 2: | carp |
| Answer 3: | confess |
| Answer 4: | close |
| Answer 5: | warn |
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.
|
|