CALLThe CALL directive is similar to GET in evaluating the variable named, but doesn't print the result returned. This can be useful when a variable is bound to a sub-routine or object method which you want to call but aren't interested in the value returned.
# run tpage tt.just.pop.pl # expect no numbers OUTPUT: [% list = [1, 2, 3] %][% CALL list.pop %]
In reply to Re: Template Toolkit: silencing pop() and the other list virtual methods
by PodMaster
in thread Template Toolkit: silencing pop() and the other list virtual methods
by jbullock35
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |