in reply to Global symbol requires explicit package name
A subroutine should obtain the data through arguments, not variables.