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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -