| 1 | 57 | ▶ | use strict; use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | package IO::All::Temp; | ||||||||||
| 3 | |||||||||||
| 4 | 57 | ▶ | use IO::All::File -base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | sub temp { | ||||||||||
| 7 | 2 | ▶ | my $self = shift; | ||||||||
|
Subroutine
temp: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 8 | 2 | bless $self, __PACKAGE__; | |||||||||
| 9 | 2 | ▶ | my $temp_file = IO::File::new_tmpfile() | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | or $self->throw("Can't create temporary file"); | ||||||||||
| 11 | 2 | $self->io_handle($temp_file); | |||||||||
| 12 | 2 | $self->_error_check; | |||||||||
| 13 | 2 | $self->autoclose(0); | |||||||||
| 14 | 2 | $self->is_open(1); | |||||||||
| 15 | 2 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 57 | 1; | |||||||||