Perl Programming/Keywords/unlink
< Perl Programming | Keywords
The unlink keywordEdit
unlink deletes a LIST of files and returns the number of files successfully deleted. If it is unsuccessful, it it returns false and sets $! to the error number (errno).
SyntaxEdit
unlink LIST
ExampleEdit
my $unlinked = unlink 'a', 'b', 'c';
unlink @files;
unlink glob "*.pl";