I wonder ... how about adding a method bind_params() like this:

sub bind_params {
        my $sth = shift;
        my $pos = (ref($_[0]) ? 1 : shift);
        for my $param (@{$_[0]}) {
                $sth->bind_param($pos++, $param);
        }
}

So that this could be shortened to

        $sth->bind_params([EMAIL PROTECTED]); # default position is 1
        $sth->bind_param_inout($#execute_args+1,\$new_id,38);

I know I can have the loop in the script, but this looks kinda more
readable to me.

Sorry if this was already rejected ;-)

I've already posted a working version of this to the list, if you like I can send you a copy to test.


-- Steven Lembark 85-09 90th Street Workhorse Computing Woodhaven, NY 11421 [EMAIL PROTECTED] 1 888 359 3508

Reply via email to