in reply to Set a variable in calling package

As I understand your question, you want your subroutine to access the copy of a package variable which is in the caller's package, whatever that might be. Wouldn't it be easier to pass the variable as an argument rather than passing the information to do this?
Bill