Chart-Graph
view release on metacpan or search on metacpan
Graph/Gnuplot.pm view on Meta::CPAN
if ($output_type eq "gif") {
if(not _exec_pbmtogif($plot_file, $output_file)) {
_cleanup_tmpdir();
return 0;
}
} elsif (defined $output_file && $output_type =~ /^(pbm|eps(?: .*)?|png|tgif)$/) {
#try to get rid of the ugly warnings when moving a file on freebsd
if ($^O eq 'freebsd') {
eval { #this is opportunistic, if it fails it doesn't really matter
my $gid = `/usr/bin/id -g`;
chomp($gid);
system('/usr/bin/chgrp',$gid,$plot_file);
};
}
my $status = system("mv", "$plot_file", "$output_file");
if (not _chk_status($status)) {
if ($Chart::Graph::debug) {
print STDERR "Couldn't mv $plot_file to $output_file: $!\n";
}
_cleanup_tmpdir();
( run in 1.738 second using v1.01-cache-2.11-cpan-5735350b133 )