Lines Matching refs:If
9 # If in doubt, write to mjd-perl-template+@plover.com for a license.
401 # If the value of the filled-in text really was undef,
757 crippled. If you need to do something the author hasn't thought of,
763 If you want a variable interpolated, you write it the way you would in
764 Perl. If you need to make a loop, you can use any of the Perl loop
787 If you have an unmatched brace, C<Text::Template> will return a
789 that do not precede a brace are passed through unchanged. If you have
930 If you omit the C<TYPE> attribute, it's taken to be C<FILE>.
931 C<SOURCE> is required. If you omit it, the program will abort.
948 You may also add a C<DELIMITERS> option. If this option is present,
956 You may also add a C<ENCODING> option. If this option is present, and the
968 If your program is running in taint mode, you may have problems if
1006 compiles it. If successful, returns true; otherwise returns false and
1007 sets C<$Text::Template::ERROR>. If the template is already compiled,
1013 If there is an argument to this function, it must be a reference to an
1051 If you use C<$template-E<gt>fill_in(PACKAGE =E<gt> 'R')> , then the C<$x> in
1052 the template is actually replaced with the value of C<$R::x>. If you
1056 You should almost always use C<PACKAGE>. If you don't, and your
1094 template by declaring it with C<my>. If the template does this, you
1147 If the I<value> is C<undef>, then any variables named C<$key>,
1152 If the I<value> is a string or a number, then C<$key> is set to that
1159 If the I<value> is a reference to an array, then C<@key> is set to
1160 that array. If the I<value> is a reference to a hash, then C<%key> is
1181 If you do this, the template will have a variable C<$database_handle>
1182 which is the database handle object. If you leave out the C<\>, the
1197 If the argument of C<HASH> is a reference to an array instead of a
1220 If any of the program fragments fails to compile or aborts for any
1226 If the C<BROKEN> function returns C<undef>, C<Text::Template> will
1228 has accumulated so far. If your function does this, it should set a
1232 If the C<BROKEN> function returns any other value, that value will be
1239 If you don't specify a C<BROKEN> function, C<Text::Template> supplies
1256 If you specify a value for the C<BROKEN> attribute, it should be a
1288 If you supply the C<BROKEN_ARG> option to C<fill_in>, the value of the
1317 If one of the program fragments in the template fails, it will call
1326 If you give C<fill_in> a C<FILENAME> option, then this is the file name that
1328 is given for template errors. If you loaded the template from C<foo.txt> for
1349 If you give C<fill_in> a C<SAFE> option, its value should be a safe
1355 If you use the C<PACKAGE> option with C<SAFE>, the package you specify
1359 If not, C<SAFE> operation is a little different from the default.
1371 If your template is going to generate a lot of text that you are just
1374 making it into a big string and returning the string. If you supply
1385 If you use C<OUTPUT>, the return value from C<fill_in> is still true on
1397 If this option is present, its value should be a reference to a list
1403 If you specify C<DELIMITERS> in the call to C<fill_in>, they override
1470 If you import C<fill_in_file>, you can say
1478 If you are going to fill in the same file more than once in the same
1487 Perl already has an include function. If you want it, you can just put
1493 If you don't want to use C<cat>, you can write a little four-line
1499 If that is too verbose, here is a trick. Suppose the template package
1511 to insert the text from the named file at that point. If you are
1539 If that's not the behavior you want, don't use C<my>. C<my> means a
1577 in them. If you're worried, or you can't trust the person who wrote
1586 package slower to do it, so I would prefer not to. If you are worried
1693 that template. If the C<fill_in> call has its own C<PREPEND> option,
1699 If you do this, then call calls to C<fill_in> for I<any> template will
1755 which the template object belongs. If it doesn't find any value, it
1853 If it didn't do that, you wouldn't be able to write C<{$recipient}>
1864 invisible. If you don't like the way this looks, use
1883 special meaning. If you had templates before version 1.10 that
1900 was C<"\"> which is a syntax error. If you wanted a backslash, you
1936 the evaluated code. If you really want a C<\> in the evaluated code,
1955 If it really, really bothers you, you can import a function called
2331 problem. If you do, I will fix it.