in reply to Checking to see if a particular Module is installed
Or something along those lines. Almost indistinguishable from the previous posts, admittedly, but I always try to be careful to wrap it up in BEGIN blocks. That way you're sure that the import is actually done at compile time instead of run time and it's virtually indistinguishable from an actual use.BEGIN { eval "use GD"; $can_GD = 1 unless $@; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Checking to see if a particular Module is installed
by tye (Sage) on Aug 11, 2000 at 22:06 UTC |