#! /usr/bin/perl use strict; if(@ARGV < 4 || @ARGV > 6) { die < /tmp/input.data creates /tmp/heat_plot.gnuplot gnuplot < /tmp/heat_plot.gnuplot moves /tmp/gnuplot.png to foo.png EOHELP } # Complete the data system("complete_data.pl $ARGV[0] $ARGV[1] $ARGV[2] $ARGV[3] > /tmp/input.data") == 0 or die $@; # Create the gnuplot instructions open(my $gp, ">", "/tmp/heat_plot.gnuplot"); print $gp <