in reply to Re: Prorgam obliterates contents of files
in thread Prorgam obliterates contents of files

You'll probably want to check whether @ARGV is empty after you've re-created it or that second diamond loop will sit quietly waiting for something when nothing is coming, i.e. the program won't terminate when @ARGV is empty.
  • Comment on Re^2: Prorgam obliterates contents of files