Skip Menu |

This queue is for tickets about the HTML-Template-Pluggable CPAN distribution.

Report information
The Basics
Id: 42392
Status: resolved
Priority: 0/
Queue: HTML-Template-Pluggable

People
Owner: Nobody in particular
Requestors: mericia [...] turboprinz.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.17
Fixed in: (no value)



Subject: compilation failed: bareword not allowed
OS: WinXP Pro SP3 Perl: This is perl, v5.8.8 built for MSWin32-x86-multi-thread HTML::Template::Pluggable: 0.17 Given this script: [code] #!/usr/bin/perl use strict; use warnings; use HTML::Template::Plugin::Dot; exit(0); [/code] these errors occur: [quote] Bareword "HTML::Template::LOOP::PARAM_SET" not allowed while "strict subs" in use at C:/Perl/site/lib/HTML/Template/Plugin/Dot.pm line 56. Bareword "HTML::Template::LOOP::TEMPLATE_HASH" not allowed while "strict subs" in use at C:/Perl/site/lib/HTML/Template/Plugin/Dot.pm line 71. Bareword "HTML::Template::LOOP::TEMPLATE_HASH" not allowed while "strict subs" in use at C:/Perl/site/lib/HTML/Template/Plugin/Dot.pm line 71. Compilation failed in require at C:\Apache\cgi-bin\bulletinboard\test\htp_dot.pl line 5. BEGIN failed--compilation aborted at C:\Apache\cgi-bin\bulletinboard\test\htp_dot.pl line 5. [/quote] HTH, Alex
Subject: Re: [rt.cpan.org #42392] compilation failed: bareword not allowed
Date: Wed, 14 Jan 2009 00:54:11 +0100
To: bug-HTML-Template-Pluggable [...] rt.cpan.org
From: Rhesa Rozendaal <rhesa [...] cpan.org>
Herr Becker via RT wrote: Show quoted text
> Given this script: > [code] > #!/usr/bin/perl > > use strict; > use warnings; > use HTML::Template::Plugin::Dot; > > exit(0); > [/code] > > these errors occur: > [quote]
[snip] Show quoted text
> [/quote]
That's because you're not using HTML::Template::Pluggable first. Remember that HTML::Template::Plugin::Dot is a plugin, so it needs something to actually plug into :) Try this on for size: #!/usr/bin/perl use strict; use warnings; use HTML::Template::Pluggable; use HTML::Template::Plugin::Dot; HTH, Rhesa
On Di. 13. Jan. 2009, 18:54:43, RHESA wrote: Show quoted text
> Herr Becker via RT wrote: >
> > Given this script: > > [code] > > #!/usr/bin/perl > > > > use strict; > > use warnings; > > use HTML::Template::Plugin::Dot; > > > > exit(0); > > [/code] > > > > these errors occur: > > [quote]
> > [snip] >
> > [/quote]
> > > That's because you're not using HTML::Template::Pluggable first. > Remember that > HTML::Template::Plugin::Dot is a plugin, so it needs something to > actually > plug into :) > > Try this on for size: > > #!/usr/bin/perl > > use strict; use warnings; > use HTML::Template::Pluggable; > use HTML::Template::Plugin::Dot; > > > HTH, > Rhesa
Oh, thanks. I should have read the manual more carefully. I'm sorry. This works fine: [code] #!/usr/bin/perl use strict; use warnings; use HTML::Template::Pluggable; use HTML::Template::Plugin::Dot; my $in = qq~ <!-- TMPL_VAR xyz --> <!-- TMPL_VAR a.b --> ~; my $t = HTML::Template::Pluggable->new(scalarref => \$in); $t->param(xyz => 'foo'); $t->param(a => {b => 'bar'}); print $t->output(); exit(0); [/code] Best regards, Alex