marnanel: (Default)
Monument ([personal profile] marnanel) wrote in [community profile] perl2010-01-22 11:57 am

Large amounts of data in CPAN packages

I have a CPAN package called Lingua::EN::Alphabet::Shaw which transliterates between the Latin and Shavian alphabets.  Currently it keeps the transliteration data, a few megabytes, in /usr, and it gets installed along with the package.  I was thinking that it would be useful to add the ability to download the data every so often from shavian.org.uk, but unless that involves me actually updating the CPAN package every week, it doesn't seem workable to keep the data in /usr, since the user generally doesn't have write permission there.  So either we keep one copy in /usr and any updates in /home, or we require the user to download the data on first use of the package rather than during installation.

I'm wondering what your opinion is of packages which do this.  I remember it was one of several annoyances I had with Lingua::Phoneme.

(Of course, the user might not even have much of a home directory, say if it was the Apache user, which makes things a bit more complicated.)


Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting