On 2/8/19 2:59 AM, The Sidhekin wrote:
The "elegant" way I'd do it, is using unpack(): https://docs.perl6.org/routine/unpackIt's experimental, so a declaration is needed, but Buf does Blob, so otherwise, it's straight to the point:$ perl6 -e 'use experimental :pack; my Buf $x=Buf.new(0xAE,0x5D,0x5C,0x72); say $x.unpack("L").base(0x10);'725C5DAE $ Eirik
Thank you!