I am getting flooded with tmp files

[email protected] (ToddAndMargo via perl6-users)
Newsgroups perl.perl6.users
Message-ID <[email protected]>
I am getting flooded with tmp files.  I though
I was erasing them (unlink).  What am I doing
wrong:

use File::Temp;
...
my Str $TmpFile = $?FILE;
$TmpFile ~~ s| .* $( Q[/] ) ||;  # we need just the name
$TmpFile ~~ s| $( Q[.] ) .* ||;

($TmpFile, $TmpHandle) = tempfile(:tempdir("."), $TmpFile ~ "_******" ~ 
".tmp" );
...
($TmpFile, $TmpHandle) = tempfile(:tempdir("."), :!unlink);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.