in reply to DBD and a MySQL query with a SET @num line

You've changed your OP without indicating what's been changed. Please don't do this. "How do I change/delete my post?" explains how to update a node (and why you should do it this way).

You've added code to your OP which differs from the code you posted in reply to my original response. This is not helpful.

Strings in double-quotes are interpolated. When perl sees "... @whatever ...". it assumes @whatever is an array. You can use single-quotes to stop interpolation or escape the '@' character (as you did in "SET \@num := 0, \@id := -1;").

-- Ken

Replies are listed 'Best First'.
Re^2: DBD and a MySQL query with a SET @num line
by edieguez (Initiate) on Jan 20, 2014 at 05:08 UTC
    Sorry about that. Thank you for your help. I'll make sure not to change the original posting in the future without referencing the link you provided.