dir_destroy#
Destructor for File::Temp::Dir objects - removes the directory tree when CLEANUP is true, the current pid matches the creator, and $File::Temp::KEEP_ALL is false.
תקציר#
{
my $dir = File::Temp->newdir; # CLEANUP => 1 by default
} # DESTROY runs here; tree is removed
מה מוחזר#
Nothing - invoked by the runtime when the last reference drops.
מקרי קצה#
A child process that inherits the object does not remove the directory on exit; only the creator pid does.
$File::Temp::KEEP_ALL = 1suppresses removal.
הבדלים מן ה-upstream#
Fully compatible with upstream File::Temp 0.2312.
ראו גם#
unlink_on_destroy- per-object opt-out for the removal behavior.cleanup- explicit cleanup of all registered temp entries.