good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Splitting on Every Second Occurenceby mt2k (Hermit) |
on May 04, 2002 at 19:36 UTC ( [id://164047]=perlquestion: print w/replies, xml ) | Need Help?? |
mt2k has asked for the wisdom of the Perl Monks concerning the following question:
Say I have the following string:
I wish to split this string up into an array on every second occurence of the '=' sign. Therefore, the structure I wish for is this:
My problem is I wonder whether it is possible to do so using the split() command or whether a regex is required to accomplish this task.
I have searched the site and come up with one topic, though I am not sure whether this is the same idea and how I would apply it. Thanks for the help!
Back to
Seekers of Perl Wisdom
|
|