Thank you that solved it for me! I thought the error was to appear on screen. I spent so much time working at this.
The error I got for your line was: Insecure dependency in unlink while running with -T switch at dfl.pl line 42.
What exactly this means or why I had the -T switch on in the first place I don't know, but I removed it and my file disappeared!!
If you know offhand what this all means I would like to hear but many thanks!
David