in reply to Re: Exec'ing a regex stored in a scalar variable
in thread Exec'ing a regex stored in a scalar variable
my %column_match = (
'SP_CITYNAME' => 'pod_city',
'SP_STATE' => 'pod_state',
'SP_POSTALCODE' => 'pod_zip',
'SP_LANDMARKNAME' => 'pod_short_name',
);
my %column_regex = (
'SP_CITYNAME' => 's/\s*$//g',
'SP_LANDMARKNAME' => 's/^Landmark - //',
);
Though I now realize this is hardly flexible enough. What if someone wanted to hack the data with "join(' ',map{ucfirst(lc($_))}split(/\s/,$_[0]));"?
|
|---|