|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Data Salad Address Problemby bofh_of_oz (Hermit) |
| on Jul 28, 2005 at 16:02 UTC ( #479013=note: print w/ replies, xml ) | Need Help?? |
|
First, determine the logical formatting rules for the data. In your case:
- Records seem to be separated by a blank line (two \n) You can use a multiline regexp, process each line with substr pushing elements into corresponding array(s) or appending to the strings/whatever. I'm not clear about ZIP codes - if they can be in field 4 or 5, use regex; if they are only in field 5 (and we do not see it because of HTML scrambling the text separators), then you'll be fine. HTH P.S. If you want, we can work on the code later...
--------------------------------
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||