in reply to How can one decompose a string into an array of 8 character blocks?
unpack '(a8)*', $str # Supports incomplete blocks $str =~ /.{8}/sg $str =~ /.{1,8}/sg # Supports incomplete blocks [download]