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)??
可以看这里的链接
perl6 中将 字符串 转成十六进制
原文:https://www.cnblogs.com/perl6/p/9623562.html