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;

>    close F or die $!;


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to