I am using rm to delete some files from a directory through a Perl script but it throws the error
can't exec "rm" no such file or directory.
Command goes like this :
system("rm $directory$files"); $directory$files = /var/spool/mqueue/qf*
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Perl has a builtin function for removing files,
unlink. The third example shows how to use it in combination withglobto delete a list of files:or in your case,