Hi Curtis!
On Friday 27 February 2009 18:48:24 Curtis Jewell (Perl-programming e-mail)
wrote:
> 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.)
I'm not interested in converting to use File::ShareDir. Please focus on my use
case of installing the data files to a certain place, and adding a small
configuration module to tell the other modules where they were placed.
>
> To install:
>
> $builder->install_path->{'extradata'} = $builder->get_prefix() .
> "/auto/share/dist/XML-Grammar-Products-Syndication";
There's no such thing as ->get_prefix() in Module::Build. What did you mean?
>
> (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');
What if the person who installs the module doesn't have permissions to write
to it? What will they do then?
Regards,
Shlomi Fish
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Interview with Ben Collins-Sussman - http://xrl.us/bjn8s
<mauke> I'm not interested in what you're doing; what are you trying to
achieve?
<PerlJam> mauke: I'm trying to achieve world peace and this regex is
the last thing standing in my way! ;)