bliako has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Temp does not cleanup() on demand
by choroba (Cardinal) on Oct 05, 2023 at 12:53 UTC | |
by bliako (Abbot) on Oct 05, 2023 at 13:36 UTC | |
by choroba (Cardinal) on Oct 05, 2023 at 13:40 UTC | |
by bliako (Abbot) on Oct 05, 2023 at 13:48 UTC | |
by swl (Prior) on Oct 05, 2023 at 21:48 UTC |