http://qs1969.pair.com?node_id=303275


in reply to Parameter passing

You didn't dereferece your references. Change the code to:
($$fn_x, $$fn_y) = ('x', 'y');
That should fix your problem.