I read in perdoc that there is no delete and only unlink can be done in perl.However am using the below code to delete a file,change the permissions and then delete the file,for some reason the file still exists,any idea?
if ( -e $file_name ) { chmod 0777, $file_name or die $!; unlink file_name; }
In reply to Deleting or unlinking a file by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |