[Nh-pm] overloading subs?

pll at lanminds.com pll at lanminds.com
Thu Feb 6 14:05:08 CST 2003


Hi all,

I have a chunk of code which "use"s a module I wrote.  I want to be 
able distribute this code without the requiring the use of this 
module.  Is there any way to have an externally imported sub mask a 
local one?  Basically, what I'd like is this:

	if (external module) {
	   use that;
	} else {
	   use this one here;
	}

I think I'm missing something very obvios here, but how can I test if 
a module has been imported at execution time?  IOW, use statements 
are evaluated at compile time, but any test I do probably needs to be 
done later on.  

Any ideas?

Thanks,

-- 

Seeya,
Paul
--
Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE

	It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.

	 If you're not having fun, you're not doing it right!





More information about the Nh-pm mailing list