Help for this page

Select Code to Download


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