| 1 | package Parallel::Tiny::Test; | ||
| 2 | 11 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 11 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 11 | ▶ | use File::Temp qw(tempfile); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 21 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 7 | 21 | my ( $fh, $filename ) = tempfile(); | |
| 8 | 21 | return bless( { tempfile => $fh, filename => $filename }, shift ); | |
| 9 | } | ||
| 10 | |||
| 11 | 10 | ▶ | sub run { |
|
Subroutine
run: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | 10 | my $self = shift; | |
| 13 | 10 | my $file = $self->{tempfile}; | |
| 14 | 10 | print $file 1; | |
| 15 | 10 | close($file); | |
| 16 | } | ||
| 17 | |||
| 18 | 11 | 1; | |
| 19 | |||