Re: Problems with __DATA__ within a module/handler and mod_perl2 (Own handler - NO CGI script) - Bug?

2006-09-18 Thread Thomas Wittek
Perrin Harkins schrieb: > Thomas Wittek wrote: >> The cursor on the DATA filehandle will be wrong: > > I think you just need to rewind it after reading it. See the docs for > seek() and tell(). Here's an example: No, the position is already wrong before any read.

Problems with __DATA__ within a module/handler and mod_perl2 (Own handler - NO CGI script) - Bug?

2006-09-18 Thread Thomas Wittek
Hello! I guess I've found a bug in mod_perl2. But I'd like to ask the users list first, if anyone has an idea what goes wrong. I've run into troubles accessing the __DATA__ section of my modules/handlers. A minimal demonstration handler looks like this: #!/usr/bin/perl package TestHandler; su