How to store data for a perl module
jh_lists at fastmail.fm
Sat Feb 23 18:19:39 CST 2002
Scott Penrose wrote:
> However I have a standard data format that is used by multiple systems
> (including a pending Java version etc) so putting it in DATA is not a
> really good idea.
Why does the data format stop you from storing it in DATA? DATA is a
location, not a format--you can store even binary formats there particularly
if you base64 encode it first.
Have you looked at Inline::File? That module takes you beyond just plain old
DATA sections to creating any named section you like, and treating it just
like a real file.
If you need to find a real path to use because you really can't use DATA,
use File::Spec to help you create non OS-specific path names.
More information about the Melbourne-pm