Multiple choice technology programming languages

Function to delete file in Perl is

  1. delete

  2. unlink

  3. rename

  4. deletefile

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

unlink is the Perl function for deleting files - it removes the link between a filename and the file's data. "delete" (option A) is for removing hash elements, rename (option C) moves files, and deletefile doesn't exist as a built-in.