The C2X function returns the hexadecimal value of the associated character string.
Portability note: the hexadecimal result will vary for character encodings in different machine environments.
result = C2X( string ) |
Examples:
say C2X( '0123'x ) -- shows 0123 say C2X( '72s' ) -- shows F7F2A2 on systems that use EBCDIC character encoding say C2X( '72s' ) -- shows 373273 on systems that use ASCII character encoding |