PDA

View Full Version : Question About New Perl Module Installation


Dunx
03-24-2006, 11:29 AM
So, I've had a Perl CGI application running on SIX for many years - almost six. It's been using a template expansion module for all of that time called "Template.pm".

Yesterday at around 1600 PST (midnight-ish GMT) it stopped working, not because of anything I had done but because another module had been installed in the system library path which resolved the Template name before my module did.

I guess on one level this is my own fault, for not submitting my module to CPAN years ago and thereby claiming some inviolable namespace, but as it is I am left with a couple of questions:

1/ what is the best way of ensuring that a local module will take precedence over a system module?

2/ is there any way to be notified of these kinds of conflicts if /1/ is not practical?

Thanks.

hobbes
03-24-2006, 11:35 AM
You could change the include path so that it checks your directory first ...

See if this post (http://www.aota.net/forums/showthread.php?postid=66230#post66230) helps in some way.

Dunx
03-24-2006, 11:48 AM
Thanks - it's the use lib line I was missing..