|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^2: How to improve regex for parsing equals delimited databy sauoq (Abbot) |
| on May 11, 2012 at 12:36 UTC ( #969997=note: print w/ replies, xml ) | Need Help?? |
|
You could improve that a great deal if you just used one of the splits already given with the slight modification of capturing the field name. There's no need for all the conditionals, substitutions, array indexing, and length checking. It's more readable too. . .
-sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||