Hi Monks! new user here!
I'm new to Perl (I know the basic syntax) and I get really surprised when I saw CPAN. Really amazing community.
So I decided to download a first module and try it.
I started downloading Email::Send::Gmail and proceed with the installation but it crashed so hard because a lot of other modules needed lol.
So I tryed with something easier:
Chart::Gnuplot
http://search.cpan.org/~kwmak/Chart-Gnuplot-0.05/lib/Chart/Gnuplot.pm#output
Everything installed fine, but when I try to run in my computer the little example of the website:
use Chart::Gnuplot;
my $chart = Chart::Gnuplot->new(
output => "/home/diffredential/Desktop/expression.png"
);
my $dataSet = Chart::Gnuplot::DataSet->new(
func => "sin(x)"
);
$chart->plot2d($dataSet);
I have installed gnuplot (just run sudo apt-get install gnuplot on my Ubuntu). So I guess an image called expression.png should appear in the Desktop after running "perl myscript.pl". But it doesn't. I guess that's not a bug of the module since is a very trivial example.
Anyone can help me getting the image? or at least I'm curious to see gnuplot plotting something.
Thanks Monks!