Deletes the specified file/directory.
"file" - the name of the file to delete.
The filename if the operation was successful or $null.
# format someones hard drive... sub deleteAll { if (-isDir $1) { map(&deleteAll, ls($1)); } deleteFile($1); } # I work on a mac by default... . deleteAll("c:/");