R
russ.jones2
Is there a way of telling if a module is already "used?" I'm working on
a module that might be called by a CGI script, or by a non-CGI script.
I'd like to be able to use 'croak," etc. instead of die, but if it's
already used by some module or program that might be using my module, I
want to use the one that's already defined.
For example, if the main program says
use CGI::Carp;
then I would want to call "main::carp"
I'd also "use Carp" in my module, and if I couldn't find any other
"carp" to use, I'd call "mymodule::carp"
So does anyone know how to tell if there's already a "carp" available?
a module that might be called by a CGI script, or by a non-CGI script.
I'd like to be able to use 'croak," etc. instead of die, but if it's
already used by some module or program that might be using my module, I
want to use the one that's already defined.
For example, if the main program says
use CGI::Carp;
then I would want to call "main::carp"
I'd also "use Carp" in my module, and if I couldn't find any other
"carp" to use, I'd call "mymodule::carp"
So does anyone know how to tell if there's already a "carp" available?