Perl Programming quiz, level Advanced, question 15
| Question: | A quick and easy way to check the existence / status of a large number of objects in a directory structure is to use: |
| Answer 1: | The validate subroutine in the File::Checktree module, with the checks to be made listed in a string as a calling parameter to validate. This was the CORRECT answer |
| Answer 2: | stat(), with the checks to be made listed after an __END__ marker at the end of the program |
| Answer 3: | The checkbot module from the CPAN, constructing a checkbot object which you pass a hash containing the specifications of the checks to make |
| Answer 4: | a file containing a list of the checks to be made, which you call using Perl's exec function |
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.
|
|