in reply to no visibility to global hashref ?!?

Tangential to your main question (which I still don't understand), but the prototype of  measureFieldLength($$$) { ... } is declared too late to be effective.

c:\@Work\Perl\monks>perl -e "package main; ;; use warnings; use strict; ;; sub foos () { foo(); } foos(); ;; sub foo ($$$) { print qq{hi from foo() singular \n}; } " hi from foo() singular