Re: [htmltmpl] using __DATA__ section as template in module

2004-10-04 Thread Carl Franks
Hi Ken, I've tried this, and it works. How does it compare with what you're doing? File test.pl #!/usr/bin/perl use warnings; use strict; use lib '.'; use Bar; Bar::foo(); File Bar.pm --- package Bar; use strict; use HTML::Template; sub foo { my $tmpl = HTML::Templat

Re: [htmltmpl] using __DATA__ section as template in module

2004-10-04 Thread Carl Franks
>>> <[EMAIL PROTECTED]> 02/10/2004 23:41:36 >>> > >Anyone ideas on what is going on? Any suggestions welcome. > >Thanks in advance, >-Ken Hi Ken, Try this instead (below), noticed that I pass the DATA fileglob (*DATA) directly to HTML::Template->new Carl #!/usr/bin/perl use strict; use warnin

Re: [htmltmpl] using __DATA__ section as template in module

2004-10-03 Thread grazer
Quoting Gabor Szabo <[EMAIL PROTECTED]>: > On Sat, 2 Oct 2004 [EMAIL PROTECTED] wrote: > > > > > > > I have been having some trouble with a module I am working on that > requires > > HTML::Template. > > > > I am trying to use the __DATA__ section of the module as a default template > to > > fall

Re: [htmltmpl] using __DATA__ section as template in module

2004-10-03 Thread Brad Baxter
On Sat, 2 Oct 2004 [EMAIL PROTECTED] wrote: > > > I have been having some trouble with a module I am working on that requires > HTML::Template. > > I am trying to use the __DATA__ section of the module as a default template to > fall back on if one is not supplied to my constructor. > > Here is a

Re: [htmltmpl] using __DATA__ section as template in module

2004-10-02 Thread Gabor Szabo
On Sat, 2 Oct 2004 [EMAIL PROTECTED] wrote: > > > I have been having some trouble with a module I am working on that requires > HTML::Template. > > I am trying to use the __DATA__ section of the module as a default template to > fall back on if one is not supplied to my constructor. In one of my

[htmltmpl] using __DATA__ section as template in module

2004-10-02 Thread grazer
I have been having some trouble with a module I am working on that requires HTML::Template. I am trying to use the __DATA__ section of the module as a default template to fall back on if one is not supplied to my constructor. Here is a simple script that illustrates the issue: [EMAIL PROTECTED