in reply to Re: Re: DBI execute() args in array format (or similar) possible?
in thread DBI execute() args in array format (or similar) possible?
*shrug* I don't know why...it just does.execute(eval{join(',',@args),return(@args)});
One possible explanation is that the execute method is looking for separate arguments and not a list. Thus, I am taking a list and turning it into arguments.
summary of what I think is happening: The execute() method wants distinct arguments ie
execute(arg1,arg2,arg3) vs execute(qw(arg1 arg2 arg3)) which is the same, of course, as execute(@args). The latter 2 examples don't work possibly because its a list instead of separate and distinct scalars respective to the number of place holders in the prepare() statement.
Does execute() not work this way?
Updated: Fixed syntax mistake with qw().
_
_
_
_
_
_
_
_
_
_
- Jim
Insert clever comment here...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: DBI execute() args in array format (or similar) possible?
by dws (Chancellor) on Aug 13, 2002 at 04:36 UTC | |
by snafu (Chaplain) on Aug 14, 2002 at 17:08 UTC |