http://www.perlmonks.org?node_id=27443

skazat has asked for the wisdom of the Perl Monks concerning the following question:

hello all, i'm making two scripts that are used for log analysis, one makes on the fly tables of data, on using the GD library, produces images based on the information of the first script,

(the first script outputs HMTL, and could also output a tag that says: <img src=graph_script.cgi?var1=$one&var_two=$two> and so on)

this is for distribution, i was wondering if there is a way to see if certain Modules are installed, like the GD module, and then act accordingly. It would be simple to just not write that img tag if its not there.

something like:

 

if($got_GC == 1) { 

#how graph
}else{ 
#say "hey, you don't gots the gear yo, stick with plain text"


}   

-justin simoni
!skazat!