Mighty monk, how can i delete a file with unlink and the file name is pass in from another .pl file to call the delete file package.
it didn't delete the file athough it outcome no error. thank you for the help.#the pass in is just the name of the file without the extension $t=".tm" #this is use for the file extension, sub DeleteFile() { my $FileName=$_[0]; $FileName="$FileName$t"; unlink '$FileName$t'; }
In reply to How come I cannot delete file with unlink by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |