|The stupid question is the question not asked|
How to include a lot of files in a module?by Miguel (Friar)
|on Jul 14, 2006 at 14:30 UTC||Need Help??|
Miguel has asked for the
wisdom of the Perl Monks concerning the following question:
This is a recurrent question (Including text files in Modules) but I still don't understand how do I include files in directories and subdirectories inside a package. I've been trying all the possibilities posted in the above thread (and some others) but with no success.
The problem is:
There are 1000s of files (TXT files) in these directories.
Some files contain specifications which cannot be modified and others contain perl data structures (extracted from those files).
Now, how do I include these files into the package? I've been trying with File::Spec, Cwd, File::Basename but with no success: 'make test' works but then, when I 'use My::Module', it complains about not finding the files.
Sorry for not posting my code, but I don't have it at hand.
Thank you for your time,