No such thing as a small change | |
PerlMonks |
Splitting on a pattern onceby perlpal (Scribe) |
on Mar 03, 2010 at 18:09 UTC ( [id://826479]=perlquestion: print w/replies, xml ) | Need Help?? |
perlpal has asked for the wisdom of the Perl Monks concerning the following question:
Hi Perl Monks,
I need to split a string which has multiple repitititions of a pattern only on the first occurrence of the pattern. Case in point being the string mentioned below :
I need to split the string on ":" on the first occurrence only i.e when it appears after Aggregate. Is this possible via split in a single step or do i need to post-process the array after split. Thanks in advance!
Back to
Seekers of Perl Wisdom
|
|