in reply to Re^2: Creating a whitelist
in thread Creating a whitelist
The database has a list of words on each line like, First, National, Bank. If someone enters "National Bank" it triggers the error even though both words are on the list."National Bank" does not match "First, National, Bank" because of the comma. Try stripping out the commas:
$_ =~ s/,//g for @orgs;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Creating a whitelist
by SimonPratt (Friar) on Jun 16, 2016 at 15:50 UTC | |
by htmanning (Friar) on Jun 17, 2016 at 00:08 UTC | |
by htmanning (Friar) on Jun 17, 2016 at 01:00 UTC | |
by haukex (Archbishop) on Jun 17, 2016 at 16:18 UTC |
In Section
Seekers of Perl Wisdom