At 6:49 AM -0700 6/18/11, eventual wrote:
Hi,
After successfully installing
Tuomas J. Lukka > Graphics-Simple-0.04 > Graphics::Simple
I do not know how to use the module. I tried the simple script below but it wont work and produce error msgs. Can someone teach me how to use the module to produce simple graph.
Thanks

##### script below ######

#!/usr/bin/perl
use Graphics::Simple;
line 100,100,200,200;


Graphics::Simple requires a graphics "backend" to render the graphics commands you give it. Your options are GnomeCanvas, TkCanvas, PostScript, and Fig. You can define the GSIMPL environment variable to select one. I was able to define GSIMPL as 'PostScript', and the sample program included in the documentation generated a postscript file in the /tmp directory.

See 'perldoc Graphics::Simple' for details or look here:

<http://search.cpan.org/~lukka/Graphics-Simple-0.04/Simple.pm>

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to