in reply to Re^6: Making a regex case insensitive
in thread Making a regex case insensitive
I have been given:
my $sql = "EXEC $SPROC ". join ', ', ('?') x $procs{$SPROC}; my $sth = $dbh->prepare($sql); $sth->execute(@CHOICE);But I don't understand how to apply it. Did the person that gave me this mean:
$sth->execute($Command);
No. I meant what I wrote. And I've tried twice to explain how it's used. But you seem determined not to understand :-)
Let's have one last try.
- Create an SQL statement containing placeholders (marked by question marks) where you later want to insert values.
- Compile that SQL using $dbh->prepare. This returns a statement handle ($sth).
- Execute the statement using $sth->execute passing it a list of values - one value for each placeholder in the SQL statement,
Does that help at all?
--
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
In Section
Seekers of Perl Wisdom