I remember having problems with __DATA__ file handle in mod_perl
environment.  I believe you could only read the file handle once, after
which all reads would actually give you back garbage.

Just $.02

  - Dmitri.

On Mon, 2006-11-13 at 06:43 -0500, Nicholas Clark wrote:
> On Fri, Nov 10, 2006 at 03:05:53PM +0100, David Landgren wrote:
> 
> > Does that sound sane? Does anyone have some pointers on how to deal
> with
> > the placement of datafiles on the local system with one module, and
> > having the other module know where to find them?
> 
> Seems pretty sane to me. No, I don't have a great idea on the other
> part,
> aside from sticking the data into a .pm file you generate at build
> time,
> after __DATA__, and reading it in from there.
> 
> (don't forget to close the DATA file handle to avoid wasting
> resources)
> 
> Nicholas Clark
> 
> 

Reply via email to