make __DATA__ available to which subroutine??
only way I can think to do that effectively is: read the data, write it to a
temporary file, watching our for any security concerns, and replace the
standard DATA file handle with on that is opened to the temporary file that
was written.
cliff rayman
genwax.com
Robin Berjon wrote:
> At 16:37 07/10/1999 +0200, Stas Bekman wrote:
> >> > So if you script included __END__ or __DATA__ token like:
>
> <snip>
>
> >> Would it be possible to remove everything after __END__ before
> >> wrapping it into a function?
> >
> >I guess it's possible, we are using perl, don't we?
>
> Or perhaps even better, remove it from the code that will get wrapped but
> still make <DATA> available ?
>
> .Robin
> "What I like about deadlines is the lovely whooshing sound they make as
> they rush past." --Douglas Adams