in reply to Odd Timing Executing Lines of Code

You could retain @files until you shut down PP, and then delete them. I recommend perl's unlink builtin over system del.

unlink or warn $! for @files;
or if you don't care about which fail, just,
unlink @files;

After Compline,
Zaxo