File::Temp states that Calling this function will cause any temp files or temp directories that are registered for removal to be removed ... Note that if a temp directory is your current directory, it cannot be removed but when I do:
use strict; use warnings; use File::Temp 'tempdir'; my $x = tempdir(); File::Temp::cleanup(); if( -d $x ){ print "still there ($x) ...\n" }
it's still there...
bw, bliako
In reply to File::Temp does not cleanup() on demand by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |