in reply to Template Toolkit: silencing pop() and the other list virtual methods

'perldoc Template::Manual::Directives'
CALL

The 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 %]

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re: Template Toolkit: silencing pop() and the other list virtual methods
  • Download Code