Automatically unlink temporary files.
This commit is contained in:
parent
62a3275179
commit
16c6001409
|
@ -27,7 +27,7 @@ use Data::Dumper;
|
|||
use HTTP::Date qw(parse_date);
|
||||
use Time::Local qw(timegm_nocheck);
|
||||
|
||||
$VERSION = do { my @r=(q$Revision: 1.12 $=~/\d+/g);sprintf "%d."."%02d"x$#r,@r};
|
||||
$VERSION = do { my @r=(q$Revision: 1.13 $=~/\d+/g);sprintf "%d."."%02d"x$#r,@r};
|
||||
|
||||
=head2 new(%opts)
|
||||
|
||||
|
@ -316,7 +316,7 @@ sub plot {
|
|||
my ($self) = @_;
|
||||
#print Dumper($self);
|
||||
|
||||
my ($datafh, $datafn) = tempfile("tsplotXXXXXXXX", UNLINK => 0);
|
||||
my ($datafh, $datafn) = tempfile("tsplotXXXXXXXX", UNLINK => 1);
|
||||
for my $i (@{$self->{data}}) {
|
||||
my $time = $i->[0];
|
||||
my $data = $i->[1];
|
||||
|
@ -337,8 +337,8 @@ sub plot {
|
|||
}
|
||||
close($datafh);
|
||||
|
||||
my ($ctlfh, $ctlfn) = tempfile();
|
||||
my ($psfh, $psfn) = tempfile();
|
||||
my ($ctlfh, $ctlfn) = tempfile(UNLINK => 1);
|
||||
my ($psfh, $psfn) = tempfile(UNLINK => 1);
|
||||
|
||||
# generic settings
|
||||
|
||||
|
|
Loading…
Reference in New Issue