[Israel.pm] splitting a string

Levenglick Dov-RM07994 dovl at freescale.com
Mon Sep 25 22:40:19 PDT 2006


Hi,
I am looking for the most efficient and most elegant (not necessarily
the same) way of splitting a string in to chunks of a given length.
E.g. if I have a string '123456' which I want to split in to two chunks
of 3 characters, I should have ('123', '456') when done.
 
 
Best Regards,
Dov Levenglick
DSP SoC System and Applications Engineer,
Network and Computing Systems Group
Freescale Semiconductor Israel
Tel. +972-9-952-2804
The information contained in this email is classified as:
[x] Freescale General Business Information
[ ] Freescale Internal Use Only
[ ] Freescale Confidential Proprietary
[ ] Personal Memorandum




More information about the Perl mailing list