in reply to remove files

Are you expecting this program to take the list of files to delete from its arguments or to read them from standard input? It currently seems to confuse the two which is likely where the problem lies.

Replies are listed 'Best First'.
Re^2: remove files
by catfish1116 (Beadle) on Nov 20, 2019 at 17:17 UTC

    remove from standarad input. Thanks !

      In that case, consider looping over @removed_files instead of @ARGV and see if that does the trick.