On Fri, Apr 25, 2008 at 6:43 PM, Aristotle Pagaltzis <[EMAIL PROTECTED]> wrote:
> * Jerome Quelin <[EMAIL PROTECTED]> [2008-04-25 09:40]:
>
> > i'm writing a tk app that i'm shipping as a cpan dist. this app
>  > needs some extra resource files (icons, etc) i'd like to know
>  > what's the best method to ship extra data files in a dist.
>
>  Do they need to be physical files or do you just need the data to
>  tag along somewhere? If you just need the data the, you could
>  have a helper script that takes the files in the source tree and
>  sticks them at the bottom of your main module after __DATA__, or
>  in a My::App::Data module after __DATA__, or as string constants,
>  possibly uuencoded (cf. `perldoc pack`), etc.
>
>  Regards,
>  --
>  Aristotle Pagaltzis // <http://plasmasturm.org/>
>

I just wanted to ask the same question for a Gtk2 application I am writing.
It has an  xml file generated by Glade and currently during perl Makefile.PL
I generate a .pm module from the xml file with a single function that returns
the content of the xml file.

It works, but I think including the content of these extra files in
.pm files is not
the right direction.

I think the Perl community should come up with some more-or-less
standard solution supported by Module::Build and MakeMaker that also
plays well with the downstream distributors.

Maybe there should be an extra/ directory defined by perl where each
module can have its own directory to put its extra files to.

regards
   Gabor

-- 
Gabor Szabo
http://www.szabgab.com/

Reply via email to