in reply to Re: Problem passing GD image object
in thread Problem passing GD image object

You're right, that fixed it. Thanks.

I still don't understand, tho. Even if I replaced the object, it seems like the replaced object should have worked anyway.

Replies are listed 'Best First'.
Re^3: Problem passing GD image object
by GrandFather (Saint) on Mar 18, 2007 at 00:49 UTC

    You would need to pass a reference to the object then update the referenced value:

    plot (\$g); ... $$graphimage = $graph->plot(\@data) or die $graph->error;

    DWIM is Perl's answer to Gödel