perl6 中将 字符串 转成十六进制

say Blob.new('abcde'.encode('utf8')).unpack("H*");
say '0x'~'abcde'.encode('utf8').unpack("H*");
use experimental :pack;
say Blob.new(1..10).unpack("H*");
# OUTPUT: «(1 2 3 4 5 6 7 8 9 10)␤» 

可以看这里的链接