in reply to split fixed string into character pairs

Thanks for all the great responses. Some pretty obvious ones. :) I should not have stayed up so late last night... JavaFan gets extra kudos for least number of characters. :)
  • Comment on Re: split fixed string into character pairs

Replies are listed 'Best First'.
Re^2: split fixed string into character pairs
by Tux (Canon) on Dec 09, 2010 at 15:49 UTC

    In perl that is by no means a guarantee to also be the fastest code :)

    If your dataset is large/huge, you'd notice that the unpack solution posted by an Anonymous Monk was way faster than all the others. And once you are used to that, it will be much easier to extend and maintain than regular expressions.


    Enjoy, Have FUN! H.Merijn