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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -