Lines Matching refs:can
149 # drastic `can't-happen' sort of failure
186 # drastic `can't-happen' sort of failure
687 You can store a template in a file outside your program. People can
688 modify the template without modifying the program. You can separate
764 Perl. If you need to make a loop, you can use any of the Perl loop
836 There is one special trick you can play in a template. Here is the
865 This means that you can write the template above like this:
875 you can't use a variable named C<$OUT> in your template without
892 C<undef> and sets C<$Text::Template::ERROR> if it can't create the
901 opened with the Perl C<open> command, so it can be a pipe or anything
904 The C<TYPE> can also be C<STRING>, in which case the C<SOURCE> should
910 The C<TYPE> can be C<ARRAY>, in which case the source should be a
920 The C<TYPE> can be FILEHANDLE, in which case the source should be an
933 The words C<TYPE> and C<SOURCE> can be spelled any of the following ways:
958 using the L<Encode> module. You can use any encoding that L<Encode> recognizes.
974 In some environments, however, local files are trustworthy. You can
1024 The I<OPTIONS> are a hash, or a list of key-value pairs. You can
1026 means that where this manual says C<PACKAGE> (for example) you can
1059 package helps prevent this. The template can still modify variables
1113 Packages can be hard to manage: You can't copy them, for example.
1200 other. You can use this feature if you want to combine several sets
1207 You can also use this to set two variables with the same name:
1229 flag that you can examine after C<fill_in> returns so that you can
1257 reference to a function that C<fill_in> can call instead of the
1290 default C<BROKEN> function ignores the C<BROKEN_ARG>, but you can
1319 which is a reference to C<$error>. C<my_broken> can store an error
1321 C<fill_in> can see if C<my_broken> has left an error message for it
1353 operations that can be performed in them.
1372 going to print out again anyway, you can save memory by having
1391 You can have some Perl code prepended automatically to the beginning
1417 In some programs, this can be cumbersome. C<fill_this_in> accepts a
1454 not a method and you can omit the C<Text::Template-E<gt>> and just say
1470 If you import C<fill_in_file>, you can say
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
1495 from the template. I wrote one for you. In the template, you can say
1507 package C<Q> can say
1522 You can do the same importing trick if this is too much to type.
1537 scope, so the template can't see C<$recipient>.
1577 in them. If you're worried, or you can't trust the person who wrote
1584 you can tamper with them deliberately for exciting effects; this is
1585 actually how C<$OUT> works.) I can fix this, but it will make the
1594 you can change the choice of delimiters to something other than curly
1597 In either the C<new()> call or the C<fill_in()> call, you can specify
1660 this easier. You can specify that any text at all be automatically
1663 When you make a call to C<fill_in>, you can specify a
1691 template object with C<new>, you can also supply a C<PREPEND> option,
1695 template. Finally, you can make the class method call
1703 An alternative to adding "use strict;" to the PREPEND option, you can
1747 affect objects in class C<Derived>? The answer is that you can have it
1765 So when you're designing your derived class, you can arrange to have
1771 prepended at C<fill_in> time. Your derived class can override this
1785 strings that you can use in your template instead of curly braces, and
1786 then use the C<DELIMITERS> option. However, if you can't do this for
1789 1. You can put C<\> in front of C<{>, C<}>, or C<\> to remove its
1796 you can put
1955 If it really, really bothers you, you can import a function called
1957 So you can say:
2360 This is free software; you can redistribute it and/or modify it under