in reply to How does one get the name of a passed scalar?
print *foo{PACKAGE} . "::" . *foo{NAME}; [download]