Perlaccess : Tutorials : File and Directory
Deleting Files (12.5)
by Jacob A. Wheeler
http://www.bigresources.com

Deleting Files:

unlink (FILE)
FILE = Full path to the file you want removed

Example:
#!/usr/bin/perl
$file = "/path/to/new/file.txt"
deleteStuff();
sub deleteStuff {
unlink($file) or "Error deleting file ($file)\n";
exit();
}