Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: DBI execute() args in array format (or similar) possible?

by perrin (Chancellor)
on Aug 12, 2002 at 20:01 UTC ( [id://189613]=note: print w/replies, xml ) Need Help??


in reply to DBI execute() args in array format (or similar) possible?

Now, I know why I am getting this error; because I am trying to call execute with the args as an array vs listing the args out manually.

No, I think you're getting this error because there is only one thing in your @args array. Your calling syntax looks correct.

By the way, it's preferable to say this:

my ($statement, $clli_ref_args, $hour_ref_args, $date_ref_args) = @_;
Or if you prefer to use multiple calls to shift, don't put the scalar variable name in list context the way you have it now.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://189613]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-24 07:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found