in reply to How does one get the name of a passed scalar?

You can't figure that out unless you pass the typeglob.
print *foo{PACKAGE} . "::" . *foo{NAME};


japhy -- Perl and Regex Hacker