> My first time using Text::Template... can anyone see why the vars in
> my template are not being filled in?
> $ cat foo.tmpl
> foo: [@-- $foo --@]
> $ cat foo.pl
> #!/usr/local/bin/perl
> use warnings;
> use strict;
> use diagnostics;
> use Text::Template;
> my $foo = 'FOO_BAR';
> my $template = Text::Template->new(
> DELIMITERS => [ '[@--', '--@]' ],
> TYPE => 'FILE',
> SOURCE => 'foo.tmpl'
> );
> print $template->fill_in();
> $ ./foo.pl
> foo:
Your template does not have access to lexical variables (ie, variables