Personally, I would recommend this variation of the idiom...

$sth->bind_param($_+1, $execute_args[$_]) for 0..$#execute_args;

Or maybe this???

my $i=1;
$sth->bind_param($i++, $_) foreach @execute_args;


-----Original Message-----
From: Tim Bunce [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 8:56 AM
To: Martin Moss
Cc: Tim Bunce; Jenda Krynicky; [EMAIL PROTECTED]
Subject: Re: bind_param_inout


On Tue, Sep 14, 2004 at 02:33:41PM +0100, Martin Moss wrote:
> I've got one further issue thats driving me nuts.
> 
> Here is the code I'm running,
> 
>  $sth->bind_param($_, $execute_args[$_]) for ([EMAIL PROTECTED]);

Actually that needs to be $execute_args[$_-1]

That may fix your other problem. If not please post a small
self-contained example.


Attachment: Brian Campbell (E-mail).vcf
Description: Binary data

Reply via email to