chimiXchanga has asked for the wisdom of the Perl Monks concerning the following question:
and here's the code, parsing the line as 2 columns:PERMIT NO: 12-1833 VALUATION: $20,42 +5.00 PARCEL NO: ISSUED DATE: 25 +-Jun-12 LOCATION: 1416 SALMON RIVER RD OWNER: 1416 SALMON RIVER RD CONTRACTOR: HASCO HTG A/C SER +VICE CO INC RIVERSIDE, CA 3015 DURAHART ST RIVERSIDE, CA 951 276-3253 951 682-33366
On the last 2 labels, how do I concat the last lines to the proper key? because using this I know it will concat only to my last $key, in this case being Contractor.if ($column_line !~ /:/) { $column_line = trim($column_line); $data{$permit_no}{$key} .= $column_line; next; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Line concat to proper hash key
by poj (Abbot) on Mar 13, 2017 at 13:06 UTC | |
|
Re: Line concat to proper hash key
by huck (Prior) on Mar 13, 2017 at 08:48 UTC | |
|
Re: Line concat to proper hash key
by Anonymous Monk on Mar 13, 2017 at 07:46 UTC |