On Wed, Jan 15, 2003 at 10:33:45AM -0500, Bob Showalter wrote: > Bob Showalter wrote: > > [EMAIL PROTECTED] wrote: > > > i need to translate the following commandline to perl: > > > > > > (echo "set term post"; echo "plot '-' w l"; cat data) | gnuplot > > > > data.ps > > > > open(F, "| gnuplot >data.ps") or die $!; > > print F "set term post\n", "plot '-' w l\n"; > > print "$_\n" for @commands; > > Oops, forgot the filehandle. That should be > > print F "$_\n" for @commands; >
perfect! i got the same syntax working just before reading this :))) thanx martin > > close F or die $!; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]