We don't bite newbies here... much | |
PerlMonks |
Re^2: Create a hash by spliting stringby sundialsvc4 (Abbot) |
on Feb 10, 2011 at 01:36 UTC ( [id://887323]=note: print w/replies, xml ) | Need Help?? |
Whereas I, being forever distrustful of data, would split the string on semicolons, and then, in a loop, split each piece separately. And, my code would verify that each of these splits generated exactly two pieces, and it would croak if ever it did not. So, this would not only accomplish the task of splitting the string, but also confirm that it is well-formed. Yup... guess I’m a Perl Dork.
In Section
Seekers of Perl Wisdom
|
|