- or download this
fields: value pos
template: mytemplate_french.tmpl mytemplate_german.tmpl
value: the value of pos
pos: 3
- or download this
C'est un exemple: {$value} est {$pos}
- or download this
use strict;
use Text::Template;
...
close $out_file;
}
}
- or download this
...
my @fields = split( / /, $config->get_fields );
...
use vars eval($str_var);
',
) or die "Couldn't construct template: $Text::Template::ERROR";
- or download this
my $template = Text::Template->new(
TYPE => 'FILE',
...
PREPEND => 'use strict;
use vars qw($value $pos);
',