Well if ya want the code to work you will need:
require "/full/path/to/somedatabase.pl";
}
elsif ($IN->param('db') eq "somethelse") {
require "/full/path/to/somethelse.pl";
}
else {
require "/full/path/to/default.pl";
}
All you need to change is the path to the .pl file and the database name inside " "
However you could just use:
my $db = $IN->param('db');
-e "/path/to/$db.db" and require "/path/to/$db.db";
Code:
if ($IN->param('db') eq "somedatabase") { require "/full/path/to/somedatabase.pl";
}
elsif ($IN->param('db') eq "somethelse") {
require "/full/path/to/somethelse.pl";
}
else {
require "/full/path/to/default.pl";
}
All you need to change is the path to the .pl file and the database name inside " "
However you could just use:
my $db = $IN->param('db');
-e "/path/to/$db.db" and require "/path/to/$db.db";