linux - Unable to remove files from directory -
i using rm delete files directory through perl script throws error
can't exec "rm" no such file or directory
.
command goes :
system("rm $directory$files"); $directory$files = /var/spool/mqueue/qf*
perl has builtin function removing files, unlink
. third example shows how use in combination glob
delete list of files:
unlink glob "*.bak";
or in case,
unlink glob($directory.$files);
Comments
Post a Comment