#!/usr/bin/perl $OCTAVE="stocksim.m"; $INPUT="buysell.dat"; $OUTPUT="buysell-gnuplot.png"; system("octave $OCTAVE"); print "Using gnuplot to plot graphs. Results are saved to $OUTPUT.\n"; open(GNUPLOT, "|gnuplot -persist"); print GNUPLOT <