|
|
| XP is just a number | |
| PerlMonks |
Re(2): More Regular Expressions (text data handling)by graq (Curate) |
| on Dec 04, 2001 at 18:12 UTC ( #129324=note: print w/ replies, xml ) | Need Help?? |
|
Agh! the gotcha here is there are some lines with 2 key value pairs on em :( Yes, sorry, I should have expanded on the data. Especially the noise either side of the data. Hence the indexing step. Below is a data example closer to a true example. The first guaranteed unique identifer is the line begining with Number (ie /^Number:/). Lines before the colon (:) seperated set of values are key-less (hard coded keys must be used), values after are sub-values of the preceding : values. So, if you like, {arms}->{2}->{leftandright}, {balls}->{1}->{rugby} .. Is it becoming any clearer?? :-(
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||