On Fri, 27 Feb 2009, Shlomi Fish wrote about Re: Default for $builder->prefix():

Am I right, or is there a better or more correct solution?

Regards,

        Shlomi Fish

I think better would be dumping the data where File::ShareDir could find it. (The location seems to be a semi-standard. No need to have a config option set then.)

To install:

$builder->install_path->{'extradata'} = $builder->get_prefix() .
"/auto/share/dist/XML-Grammar-Products-Syndication";

(or maybe $builder->original_prefix('site'))

Then to use, all you'd have to do to get the directory would be:

use File::ShareDir 'dist_dir';
$dir = dist_dir('XML-Grammar-Products-Syndication');

I'd want to check and see if this would work with a PREFIX or install_base.
From the looks of things, it should.

--Curtis

--
Curtis Jewell (Perl-programming e-mail)
p...@csjewell.fastmail.us
cur...@livejournal.com        http://curtis.livejournal.com/

Your random numbers are not that random
                           --perl5.8.8/util.c

[I use PC-Alpine, which deliberately does not display colors and pictures
in HTML mail]

Reply via email to