NAME

objname - returns the name of the given global obj, if present

SYNOPSIS

oadl::objname(obj)

DESCRIPTION

The objname() function performs an inverse lookup on the global symbol table to find the name associated with the given obj. This is primarily useful for debugging or for introspection.

RETURN VALUE

Returns a string containing the name of the global object if found. If the object is not found in the global symbol table, it returns nil.

ERRORS

ArgCheck is thrown if exactly one argument is not provided.

EXAMPLE

    "My name is ", oadl::objname(main), '\n';

SEE ALSO

findobj
pubname