Perl Programming quiz, level Advanced, question 11
| Question: | If you are opening a file for read access, and you know that others may open it at the same time, possibly to modify its contents, you should: |
| Answer 1: | Open it with a non-exclusive lock This was the CORRECT answer |
| Answer 2: | Open it with a non-blocking lock |
| Answer 3: | Use seek prior to each read |
| Answer 4: | Take no special action - that's only necessary if you were opening the file to modify it yourself |
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.
|
|