? ?? wrote:

your OS? linux, Windows and others?

OS X which is a BSD, FreeBSD several versions and differebt flavors of Linux :) The OS doesn't matter becasue I'm looking for a way to find the current installed gdlib version, preferabley from GD.pm and hoepfullt platform independant


If your OS is Windows, your can use "ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/GD.ppd";
to install GD (current GD version:2.19) and don't need others action.


If your OS is linux, you can go "http://www.boutell.com/gd/"; for
gd-2.0.33.tar.tar

Thanks, I have the latest gdlib and GD installed already. I'm writing a GD::Image module and wanted to check the verion of the c library gdlib that GD.pm is using so I can do different thigns based on what each version allows.


So I need to:

 if($gdlib_c_library_that_current_gd_obj_is_using < 2) {

# do gdlib version 1 stuff

 } elsif($gdlib_c_library_that_current_gd_obj_is_using == 2.0.33) {

# do gdlib 2.0.33 stuff

 } else {

# do default "2 or higher but not 2.0.33" stuff

 }

So what I'd like to do is get

$gdlib_c_library_that_current_gd_obj_is_using

from

use GD;

...

my $gdlib_c_library_that_current_gd_obj_is_using = ???;

Does that make it more understandable?

TIA

Lee.M

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to