You could also use substr and loop through until you run out of characters.
In reply to Re: how to split input data ? by Moriarty in thread how to split input data ? by bh_perl