411 REFERENCE · Wikibooks
Perl Programming/Keywords/unlink
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl unless unpack Keywords
The unlink keyword
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).
Syntax
unlink LIST
Example
my $unlinked = unlink 'a', 'b', 'c';
unlink @files;
unlink glob "*.pl";
See also
link
Perl unless unpack Keywords