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!

In reply to Newbie using modules by diffredential

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.