Re: How do I properly use resume() and pick up inc?

[email protected] (Eric Wilhelm)
Newsgroups perl.module.build
Message-ID <[email protected]>
# from brian d foy
# on Tuesday 29 September 2009 17:19:

>>   eval "require $build_class; 1" or
>>     die "Failed to re-load '$build_class': $@";
>
>Well, that bit is the problem. If I got past that I wouldn't have a
>problem.

But wait, you said you called Module::Build->resume() and got back the 
expected object class but without the necessary @INC.  How did that 
happen?

>Well, I'd just store the extra libs in Build i _build/config and leave
>it at that without changing any other MB code. If I resume(), I can
>query the config and decide on my own how to handle it. Ideally, I'd
>like to know everything about the setup as I can from config.

That's doable, but you need that info before you resume() to deal with 
the require() above, right?

--Eric
-- 
Turns out the optimal technique is to put it in reverse and gun it.
--Steven Squyres (on challenges in interplanetary robot navigation)
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.