in reply to Re: splitting a string into arbitrary lengthsin thread splitting a string into arbitrary lengths
(un)pack will likely be the fastest way to do this. Don't forget you can put spaces in appropriate places in the pattern to make it easier to read. (I say 'pack' because the useful documentation for 'unpack' is in 'pack'. :-)