Multiple choice technology programming languages

You want to close the directory handle EVAN. Which of the following should you use to accomplish this?

  1. close EVAN;

  2. closedir EVAN;

  3. close_directory EVAN;

  4. none of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Perl, directory handles are closed using the closedir() function, not close(). The correct syntax is closedir EVAN;. The close function is for filehandles only, not directory handles.