| 1 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | package Mail::Audit::Util::Tempdir; | ||||||||||
| 4 | { | ||||||||||
| 5 | 3 | $Mail::Audit::Util::Tempdir::VERSION = '2.228'; | |||||||||
| 6 | } | ||||||||||
| 7 | 3 | require File::Tempdir; | |||||||||
| 8 | 3 | ▶ | use parent 'File::Tempdir'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | # ABSTRACT: self-cleaning fork-respecting tempdirs | ||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | 1 | my $class = shift; | |||||||||
| 13 | 1 | my $self = $class->SUPER::new(@_); | |||||||||
| 14 | 1 | $self->{'Mail::Audit'}{pid} = $$; | |||||||||
| 15 | 1 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 1 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: called CC=2 SCAR=7.0
| |||||||||||
| 19 | 1 | ▶ | return unless do { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 1 | local $@; | |||||||||
| 21 | 1 | eval { $_[0]->{'Mail::Audit'}{pid} == $$ }; | |||||||||
| 22 | }; | ||||||||||
| 23 | 1 | $_[0]->SUPER::DESTROY; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 3 | 1; | |||||||||
| 27 | |||||||||||
| 28 | __END__ | ||||||||||