In that case, consider looping over @removed_files instead of @ARGV and see if that does the trick.
In reply to Re^3: remove files by hippo in thread remove files by catfish1116