OT: module related question

Benjamin Smith bsmith at cabbage.org.uk
Mon Sep 10 08:06:11 BST 2007


On Fri, Sep 07, 2007 at 03:48:47PM +0100, Martin Bower wrote:
> Hi,
> 
> I've created a module using Module::Starter, and I've added a file which
> contains a complex data structure, created with Storable.  (and added it to
> the MANIFEST)
> 
> I can perl Makefile.PL, make , make test , make install,  and the file goes
> into place along with the module, so everything is ok so far.
> 
> How can I refer to that file from within the module so I can retrieve it ?!?
> The module has installed into lib/site_perl/5.6.1 , but is there some clever
> method of finding out where its installed to ?

There's always Adam Kennedy's File::ShareDir module.

http://search.cpan.org/perldoc/File::ShareDir

-- 
Benjamin Smith <bsmith at cabbage.org.uk>


More information about the london.pm mailing list