in reply to Re^3: my variables in a subroutine
in thread my variables in a subroutine

That's not a hack, it's a Design Pattern!