Use references to pass arrays or hashes into your template: 

$vars-&gt;{'Tree'} = \@dirs;


Then in the template:

[% FOR d = Tree %]
    [% d %]
[% END %]


How can I get elements out of an array with Template Toolkit?
I have an old 5 button Microsoft mouse (Laser Mouse 6000) and forever I've assigned the thumb button to "back" in the browser and the middle mouse button to "next app" on the desktop. Since I've installed Lion, this doesn't seem to work. The settings in the "Microsoft Mouse" panel in System Preferences don't seem have any effect. 

Is there another way to map mouse buttons? I've noticed that Mission Control seems to detect my 5 buttons and let me assign them, but only to Mission Control functions. I don't see anywhere else where I can do this. Do I just need to wait for new MS drivers? Thanks.
