in reply to GD::Image gone from GD ??

GD::Image is an integral part of GD.pm. When you use GD;, you get GD::Image also.


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

Replies are listed 'Best First'.
Re^2: GD::Image gone from GD ??
by Jazeker (Initiate) on Jan 09, 2005 at 19:23 UTC
    That's what I thought when looking at the docs too. However, GD cannot be found on Activestate, but I found it on http://theoryx5.uwinnipeg.ca/ppms/. When you install, however, there is NO GD::Image included. Included are ::Simple and ::Polyline, but not ::Image. How frustrating :-(

      I think you misunderstand me.

      There is no separate file for GD::Image. All the code that makes up the GD::Image 'package' is in the file GD.pm.

      Once you have installed GD from the PPM, you have also installed GD::Image. Just use it. It is there.

      If you have installed GD, then try this:

      perl -MGD -le "$img = GD::Image->new()"

      That will run without error and create an instance of GD::Image.


      Examine what is said, not who speaks.
      Silence betokens consent.
      Love the truth but pardon error.
        It runs without an error indeed. I bow to thee in deep respect. Now I have to and find out why I got an error about GD::Image then... Thank you so much !