Your code looks fine...did you try it?
In reply to Re: Syntax to call a subroutine from a reference by herveus in thread Syntax to call a subroutine from a reference by neilwatson