Add your own vmethod
Then kw.vm_keys.sort works, but naturally it breaks if you define a key called "vm_keys"$tt->context->define_vmethod( hash => vm_keys => \&Template::VMethods::hash_keys );
You can't have _keys as those are ignored by dodot, they're private
In reply to Re: A key called keys in a hash in Template Toolkit (define_vmethod)
by Anonymous Monk
in thread A key called keys in a hash in Template Toolkit
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |