Let's say I'd like to split some data into 60-character parts and store them in a hash. I've got the following solution, but it seems a bit dirty to me: (because of iteration and constant reassigning)
i = 0
while signature != '':
header_hash['Some-Authorization-' + i] = signature[:60]
signature = signature[60:]
i += 1
Can you come up with a better way of handling this?