"Gabor Szabo" <[EMAIL PROTECTED]> writes:
> I have arived to the point in Padre that I started to add a toolbar
> to the main frame. Base on the example in the Demo I use the
> external .xpm files. All works well in my development environment as
> I know where the files are relative to the executable.
> I wonder how should I include these files in the CPAN distribution,
Ah! Welcome to the wonderful world of software distribution...
Unfortunately, there are no widely accepted standards to solve this.
Fortunately, there is more than one way to do it. For example:
- put the data in a .pm, and load it.
- put the data in a subdirectory below your modules, and use @INC to
find it.
- File::HomeDir and File::ShareDir are good alternatives, although
they are not widely supported yet.
I use the 2nd approach in one of my major Perl apps, EekBoek.
When installing via a package manager, I usually put the files in the
location according to the system conventions. E.g., on Fedora, all
modules and files will be placed in /usr/share/MyPackage instead of
clobbering /usr/lib/perl5.
HTH,
Johan
PS: Congrats with your Camel Award!