in reply to Template Toolkit: silencing pop() and the other list virtual methods
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 %]
|
|---|