in reply to HTML::Template in a module's __DATA__ section
I think <DATA> always reads from the __DATA__/__END__ in the startup file. (You could test this yourself by copying the template into the .pl file.) You could do the following instead of using <DATA>:
my @html = <<'__EOD__' =~ m#(.*?$/)#g; <html> <head> </head> <body> <TMPL_VAR NAME=VALUE> </body> </html> __EOD__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::Template in a module's __DATA__ section
by Anonymous Monk on Sep 12, 2004 at 01:34 UTC |