Lines Matching defs:new
59 sub new {
72 Carp::croak("Usage: $ {pack}::new(TYPE => ..., SOURCE => ...)");
457 my $templ = $pack->new(TYPE => 'STRING', SOURCE => $text, @_)
479 my $templ = Text::Template->new(TYPE => 'FILE', SOURCE => $fn, @_) or return undef;
621 $template = Text::Template->new(TYPE => 'FILE', SOURCE => 'filename.tmpl');
622 $template = Text::Template->new(TYPE => 'ARRAY', SOURCE => [ ... ] );
623 $template = Text::Template->new(TYPE => 'FILEHANDLE', SOURCE => $fh );
624 $template = Text::Template->new(TYPE => 'STRING', SOURCE => '...' );
625 $template = Text::Template->new(PREPEND => q{use strict;}, ...);
628 $template = Text::Template->new(DELIMITERS => [$open, $close], ...);
729 my $template = Text::Template->new(SOURCE => 'formletter.tmpl')
753 loop, so they invent a loop syntax. Pretty soon they have a new
887 =head2 C<new>
889 $template = Text::Template->new( TYPE => ..., SOURCE => ... );
891 This creates and returns a new template object. C<new> returns
898 Text::Template->new( TYPE => 'FILE', SOURCE => $filename );
907 Text::Template->new( TYPE => 'STRING',
914 Text::Template->new( TYPE => 'ARRAY',
927 Text::Template->new ( TYPE => 'FILEHANDLE',
961 Text::Template->new(
976 C<UNTAINT =E<gt> 1> in the call to C<new>. This will tell
1190 template as if you had specified that package. A new package is
1337 my $template = Text::Template->new(
1405 C<new>.
1479 program you should use the longer C<new> / C<fill_in> sequence instead.
1597 In either the C<new()> call or the C<fill_in()> call, you can specify
1659 C<Text::Template> version 1.22 and higher has a new feature to make
1691 template object with C<new>, you can also supply a C<PREPEND> option,
1701 except where overridden by C<PREPEND> options to C<new> or C<fill_in>.
1737 the C<PREPEND> option in the C<new> call that created the template
1961 my $template = Text::Template->new(SOURCE => $filename);
1971 my $template = Text::Template->new(SOURCE => $filename)
2318 out of adding any new syntax. These discussions resulted in the