On Thu, 2005-02-10 at 12:01 -0500, Matthew Berk wrote:
> I have come up with a bit of a hackish, near term solution. Wanted to 
> share it with the group.
> 
>   - check to see if a subroutine in the library is defined()
>   - if not, delete() the library name from %INC
>   - require() the library

I do something like that when porting legacy code in a hurry.  I use a
do('library.pl') inside a BEGIN block, so that it ignores %INC but only
happens once per script.

You definitely want to fix this in the long-term though.  Duplicating
these subs in multiple scripts eats up memory.

- Perrin

Reply via email to