Ummmmmm ... your post now looks nothing like my recollection of it from a few hours ago. (Perhaps my memory is letting me down.)

One of the nice things about being able to edit one's posts is that one can fix errors (eg typos, formatting) - but if you're going to move the goalposts by more than a kilometre or two, it's generally considered good etiquette to acknowledge that you have done so :-)

I don't have an answer to your question as it now stands - but it at least looks sane.

The following code produces the same error as you reported:
use warnings; use strict; my $x = foo; print $x, "\n"; sub foo {return 42}
But the following code runs fine:
use warnings; use strict; my $x = foo(); print $x, "\n"; sub foo {return 42}
On the surface, it looks like it may be a bug in GDGraph, but it seems that no such bug has been reported ... perhaps it's something else. Answers to the following questions may help:
1) What version of perl do you have ?
2) What version of GD (the perl module) do you have ?
3) What version of the GDGraph module do you have ?
4) What version of gd (the C library) do you have ?

Cheers,
Rob

In reply to Re: installing perl GD module by syphilis
in thread installing perl GD module by boby

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.