in reply to idiotic syntax to pass to a sub

You are using the right syntax. Make sure you are not using use strict;, as you are using symbolic references.

You should be aware that you are using a technique many people frown upon because it's easy to create hard to find bugs.

Abigail