deleteFile

Synopsis

$ deleteFile("file")

Deletes the specified file/directory.

Parameters

"file" - the name of the file to delete.

Returns

The filename if the operation was successful or $null.

Side Effects / Notes

Examples

# format someones hard drive... sub deleteAll { if (-isDir $1) { map(&deleteAll, ls($1)); } deleteFile($1); } # I work on a mac by default... . deleteAll("c:/");

See Also