unlink刪除一個LIST的檔案,並返回成功刪除的檔案數量。如果失敗,則返回 false 並設定$!為錯誤號(errno).
unlink LIST
my $unlinked = unlink 'a', 'b', 'c'; unlink @files; unlink glob "*.pl";