in reply to Data Salad Address Problem
(Note you could reverse the @$row array and work with ($row->[0], $row->[1]) instead)my @data = ( [...], [...], ... ); # assume AoA foreach my $row (@data){ while(scalar(@$row) && ! $row->[-1]){ # if last item is blank pop @$row; #then remove it } my $city_state_zip_str = $->row[-1]; my $address_str = $row->[-2]; # parse those two vars w/regexp's here }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Data Salad Address Problem
by bofh_of_oz (Hermit) on Jul 28, 2005 at 18:22 UTC |