in reply to Re: Data Salad Address Problem
in thread Data Salad Address Problem
That should get the multiline record string, process it by-line, and push the corresponding field into an AoA. What needs to be added is the processing for ZIP code since it's the last field of the last row in a record.my @fields; ... foreach my $row (@data) { @string = split(/ +/); for (0..$#string) { push @{ $fields[$_] }, $string[$_]; } } ...
--------------------------------
An idea is not responsible for the people who believe in it...
|
---|