The $QLENGTH function returns the number of subscripts in a variable name. The format is:
$QL[ENGTH] (namevalue)
The namevalue has the form of an evaluated subscripted or unsubscripted global variable (which yields a length of zero, and which may have an environment - not counted) or local variable name.
The form returns a value which is derived from namevalue. If namevalue has the form NAME(s1, s2,..., sn), considering n to be zero, if there are no subscripts, then the function returns n.
This function only affects the naked indicator if the string in question is stored in a global variable.