7 |
use lib './lib'; |
use lib './lib'; |
8 |
|
|
9 |
use WebPAC::Common 0.02; |
use WebPAC::Common 0.02; |
10 |
use WebPAC::Lookup; |
use WebPAC::Lookup 0.03; |
11 |
use WebPAC::Input 0.07; |
use WebPAC::Input 0.07; |
12 |
use WebPAC::Store 0.03; |
use WebPAC::Store 0.03; |
13 |
use WebPAC::Normalize 0.11; |
use WebPAC::Normalize 0.11; |
221 |
|
|
222 |
die "I know only how to handle input types ", join(",", @supported_inputs), " not '$type'!\n" unless (grep(/$type/, @supported_inputs)); |
die "I know only how to handle input types ", join(",", @supported_inputs), " not '$type'!\n" unless (grep(/$type/, @supported_inputs)); |
223 |
|
|
224 |
my $lookup = new WebPAC::Lookup( |
my $lookup; |
225 |
lookup_file => $input->{lookup}, |
if ($input->{lookup}) { |
226 |
) if ($input->{lookup}); |
$lookup = new WebPAC::Lookup( |
227 |
|
lookup_file => $input->{lookup}, |
228 |
|
); |
229 |
|
delete( $input->{lookup} ); |
230 |
|
} |
231 |
|
|
232 |
my $input_module = $config->{webpac}->{inputs}->{$type}; |
my $input_module = $config->{webpac}->{inputs}->{$type}; |
233 |
|
|