B::GV::SAFENAME#

Return the GV’s name with a leading control character rendered as ^X.

Synopsis#

B::svref_2object(\*{"main::\cA"})->SAFENAME;   # "^A"

The single-character control names (*^A, *^D, *^?) appear in the stash with raw control bytes in their name; SAFENAME renders them in the caret form normally used in Perl source. Only the first character is converted, so *^WARNING_BITS gives ^WARNING_BITS; the conversion itself is B::safename.