Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I have an issue in spliting a string. The problem is I have to split only by every 6 time the delimiting factor occur. Is that possible.?
$data = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z";
Here I need to give coma as the delimiting factor, but I need to split only after 5 comas.
means the output should be split like the below,
"A,B,C,D,E"
"F,G,H,I,J" & so on
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Seeking help with split!
by AnomalousMonk (Archbishop) on Jun 30, 2013 at 19:43 UTC | |
by Anonymous Monk on Jul 01, 2013 at 05:43 UTC | |
by Happy-the-monk (Canon) on Jul 01, 2013 at 07:45 UTC | |
|
Re: Seeking help with split!
by AnomalousMonk (Archbishop) on Jul 01, 2013 at 18:48 UTC |