in reply to Generic front end with back-end drivers?
if ($type eq 'foo') { $parser = "Parser::Foo"; } elsif ($type eq 'bar') { $parser = "Parser::Bar"; } else { die "What the heck is $type?"; } eval "use $parser" or die "Can't load $parser: $@";
Then you make calls to your parser via the package name:
$parser->do_that_thing($with_this);
-sam
|
|---|