I'm not sure if the title is exactly right. What I'm trying to do is this (I've already gotten the database handle from DBI):
my $idcenter = 4;
my $getCenter = $dbh->prepare(
<<SQLEND
select * from center
where uidcenter = ?
SQLEND
);
my @tables = ("Center");
foreach $table (@tables) {
my $func = "get$table";
$func->bind_param(1, $idcenter);
etc.
}
So, how do I construct a variable that points (? is that right?) to a function? Is there a way?