SPUG: Template Toolkit and Module::Build
Michael R. Wolf
MichaelRWolf at att.net
Thu Dec 2 13:13:41 PST 2010
You are not surprised.
You are right.
Files/directories *are* found in blib when it's in @INC (i.e. specified with -I flag on command line).
Thank you for making this non-obvious side effect obvious to me.
Thanks,
Michael
FYI... So that others can benefit from your answers to my questions, I've added a note at AnnoCPAN (http://www.annocpan.org/~ADAMK/File-ShareDir-1.02/lib/File/ShareDir.pm#note_2587), and filed a documentation ticket at https://rt.cpan.org/Ticket/Display.html?id=63548
On Nov 30, 2010, at 2:00 PM, Ingy dot Net wrote:
> I would be surprised if File::ShareDir didn't find files in blib, since that's effectively where things are installed during testing.
>
> On Wed, Dec 1, 2010 at 5:44 AM, Michael R. Wolf <MichaelRWolf at att.net> wrote:
>
> On Nov 28, 2010, at 3:36 AM, Ingy dot Net wrote:
>
>> Why do you want Module::Build?
>
> Personal habit and module-starter stuff that's been around for a while. It's not "broken" (for some definition of broken), so I fixed other things with my time/energy.
>
>
>> Module::Install makes everything trivial.
>>
>> use inc::Module::Install;
>> install_script 'bin/foo';
>> install_share;
>
> Thanks. I'll look into it. Is this "trivial", for the Ingy definition of trivial, or for the mere-mortal definition?
>
>
>>
>> File::ShareDir finds files under share/ after they are installed.
>
> This is great to know about. Thanks. I'm not seeing how to use this during testing. At least the modules in ../blib can be accessed during testing by mucking with -I flags (or PERL5_LIB). I don't see how the share can be intercepted in develoment and test prior to 'Build install'. What am I missing?
>
> --
> Michael R. Wolf
> All mammals learn by playing!
> MichaelRWolf at att.net
>
>
>
>
--
Michael R. Wolf
All mammals learn by playing!
MichaelRWolf at att.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/spug-list/attachments/20101202/d058ae1d/attachment.html>
More information about the spug-list
mailing list