> 
> Under mod_perl 1, DATA sections are unavailable in scripts.  
> I don't know if this is the same for mod_perl 2, but try 
> moving the template out of DATA and into a scalar, and see 
> what happens.

Almost true, they are only available once within each invocation of perl,
which in mod_perls case is once per server child.  You can get at them more
than once by storing the file position in a class variable and before
reading them seeking to the file position (I did this recently in a patch to
File::MMagic which now works under mod_perl).  However your'e right that the
best thing to do is use a scalar.

S

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to